[GH-ISSUE #250] Removing a page containing a form causes input lockup #193

Closed
opened 2026-03-04 01:02:52 +03:00 by kerem · 1 comment
Owner

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.

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.
kerem closed this issue 2026-03-04 01:02:52 +03:00
Author
Owner

@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.

<!-- gh-comment-id:480526463 --> @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.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/tview#193
No description provided.