tui: run a menu on a screen the caller supplies #173
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
needs-verification
question
queue
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
romaine-life/fzt-terminal!173
Loading…
Reference in a new issue
No description provided.
Delete branch "resident-screen"
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?
Lets a menu run on a screen the caller makes, not only on the process's own terminal:
tui.RunOnandtui.RunLoopOntake an unstartedtcell.Screen, start it and end it asRunandRunLoopalways have.RunandRunLoopnow make the terminal's screen and call them, so nothing changes for existing callers.Why: fzt-automate is moving to staying running in the background, with tmux drawing the menus it sends over a pipe, so the at menu opens without starting a program each time. Each menu it draws is on a screen over that pipe.
Work package: https://openproject.home.romaine.life/wp/FZTA-25
Test:
TestRunOnSuppliedScreenruns a menu on a simulated screen the test made and picks from it with Enter.🤖 Generated with Claude Code