mirror of
https://github.com/rivo/tview.git
synced 2026-04-27 05:45:49 +03:00
[GH-ISSUE #250] Removing a page containing a form causes input lockup #193
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#193
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 @rladams on GitHub (Mar 18, 2019).
Original GitHub issue: https://github.com/rivo/tview/issues/250
I've been writing a proof of concept CRUD interface for a simple table with Tview, and it's remarkably well documented. I ran into an issue when removing a form using RemovePage where the terminal returns to the previous screen (a table which I regenerate), yet the input is completely locked. I must control-c out. I worked around this by overwriting pages and not using RemovePage. I thought I should report it.
Relevant code:
https://bitbucket.org/Demosthenex/gotviewaddressbook/src/b0ff7659aad9eb4842b19881d29446e9029ce290/addressbook.go
Run it, press enter on any contact, quit the form without changes. It goes back to the list and is locked.
@rivo commented on GitHub (Apr 6, 2019):
Thanks for spotting this. Indeed, removing the only visible page left you with no visible page. I fixed it so there is always a visible page when a page is removed.