tui: run a menu on a screen the caller supplies #173

Merged
merge-queue merged 1 commit from resident-screen into main 2026-12-01 00:43:48 -08:00
Owner

Lets a menu run on a screen the caller makes, not only on the process's own terminal: tui.RunOn and tui.RunLoopOn take an unstarted tcell.Screen, start it and end it as Run and RunLoop always have. Run and RunLoop now 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: TestRunOnSuppliedScreen runs a menu on a simulated screen the test made and picks from it with Enter.

🤖 Generated with Claude Code

Lets a menu run on a screen the caller makes, not only on the process's own terminal: `tui.RunOn` and `tui.RunLoopOn` take an unstarted `tcell.Screen`, start it and end it as `Run` and `RunLoop` always have. `Run` and `RunLoop` now 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: `TestRunOnSuppliedScreen` runs a menu on a simulated screen the test made and picks from it with Enter. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
tui: run a menu on a screen the caller supplies (RunOn, RunLoopOn)
All checks were successful
Suite go / scope (pull_request) Successful in 6s
Suite default / scope (pull_request) Successful in 6s
Suite release / scope (pull_request) Successful in 7s
Suite go / check-test-linux (pull_request) Has been skipped
Suite go / check-services (pull_request) Has been skipped
Suite default / check-fetches (pull_request) Has been skipped
Suite default / check-rules (pull_request) Has been skipped
Suite release / module (pull_request) Has been skipped
Suite release / reserve (pull_request) Has been skipped
Suite release / check-manifest (pull_request) Has been skipped
Suite release / build (go, ubuntu-latest) (, go, false, ubuntu-latest, , go) (pull_request) Has been skipped
Suite release / build (go, windows-amd64-c-shared) (, go-windows-amd64-c-shared, false, windows-latest, windows-amd64-c-shared, go) (pull_request) Has been skipped
Suite release / finalize (pull_request) Has been skipped
Suite release / publish (pull_request) Has been skipped
Suite release / deliver (pull_request) Has been skipped
Suite release / deploy-image (pull_request) Has been skipped
Suite release / deliver-prune (pull_request) Has been skipped
Suite default / check-logs (pull_request) Successful in 6s
Suite go / check-format (pull_request) Successful in 7s
Suite release / check-build (go, ubuntu-latest) (, go, false, ubuntu-latest, , go) (pull_request) Successful in 13s
Suite default / reused-checks (pull_request) Successful in 7s
Suite go / check-test-windows (pull_request) Successful in 1m1s
Suite release / check-build (go, windows-amd64-c-shared) (, go-windows-amd64-c-shared, false, windows-latest, windows-amd64-c-shared, go) (pull_request) Successful in 1m2s
Suite go / reused-checks (pull_request) Successful in 5s
Suite release / check-package (pull_request) Successful in 7s
Suite release / reused-checks (pull_request) Successful in 6s
merge-queue / group passed with the 9 modules that use it
merge-queue landed on main
27194bc6bf
A program that stays running and draws menus for tmux makes a screen per
menu over its own pipe to tmux, not the process's console (FZTA-25).
merge-queue deleted branch resident-screen 2026-12-01 00:43:48 -08:00
Sign in to join this conversation.
No description provided.