mirror of
https://github.com/rivo/tview.git
synced 2026-04-27 05:45:49 +03:00
[GH-ISSUE #352] Unable to update primitives #262
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#262
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 @zmnpl on GitHub (Oct 11, 2019).
Original GitHub issue: https://github.com/rivo/tview/issues/352
Hi, maybe it's jut too late and honestly I'm feeling stupid to ask... But I am unable to update primitves once the app is run. Take the minimal example from "Hello World":
The box title simply doesn't change. It seems that this part of the code is not even reached until I terminate the application.
I added the commented lines and those only seem to be executed after I Ctrl+C'd the app.
Please enlighten me. I know I'm missing something obvious... what am I doing wrong =)
@Bios-Marcel commented on GitHub (Oct 11, 2019):
The call to
Runis blocking, therefore the following code only gets executed if you kill the application, which is what happens when hitting Ctrl-C. If you wanna execute any further logic, trigger it either by user interaction or start a new goroutine and useQueueUpdateDrawlike this:@zmnpl commented on GitHub (Oct 12, 2019):
Thats spot on. Thank you and have a good day kind sir!