mirror of
https://github.com/rivo/tview.git
synced 2026-04-26 21:35:54 +03:00
[PR #59] [CLOSED] (application) expose tcell.Screen through getter #849
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#849
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?
📋 Pull Request Information
Original PR: https://github.com/rivo/tview/pull/59
Author: @zaquestion
Created: 2/20/2018
Status: ❌ Closed
Base:
master← Head:expose_screen📝 Commits (1)
8b3e475(application) expose tcell.Screen though getter📊 Changes
1 file changed (+20 additions, -17 deletions)
View changed files
📝
application.go(+20 -17)📄 Description
This is largely for reference and isn't expected to be merged as is.
Curious what your thoughts are on exposing the screen to the user? Currently its difficult to do so since
Run()creates the screen and starts the event loop. As a proof of concept I moved it intoNewApplication, but needed add an error to the return. This kind of API breakage probably isn't the best idea, so perhaps this functionality would be best served in a seperate function (likeNewApplicationScreen()andRun()updated to check for a screen before creatinga a new one.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.