mirror of
https://github.com/rivo/tview.git
synced 2026-04-26 21:35:54 +03:00
[GH-ISSUE #159] Proposal: RunWithScreen() #125
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#125
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @progrium on GitHub (Aug 30, 2018).
Original GitHub issue: https://github.com/rivo/tview/issues/159
Creating a custom tcell.Screen is the only way to get these types of systems to work over non-stdio environments (like SSH), but tview doesn't allow you any control over the screen it uses. I'm going to fork and patch for my uses but I'd like to submit a PR to fix this so I'd like to discuss the API.
I figure the easiest thing is to provide an alternative Application.Run that takes a tcell.Screen, perhaps like
RunWithScreen(screen tcell.Screen).@rivo commented on GitHub (Sep 5, 2018):
I've added the
SetScreen()function toApplication. I think this should help you achieve what you want to do.Please note that it there may be issues if you use
Application.Suspend(). If you really need to useSuspend(), I might have to think about a different solution.Let me know if this works for you.
@progrium commented on GitHub (Sep 5, 2018):
Nice, thank you! This should work perfectly.