Eric Traut
989e513969
tui: always restore the terminal on early exit ( #15671 )
...
## Summary
Fixes early TUI exit paths that could leave the terminal in a dirty
state and cause a stray `%` prompt marker after the app quit.
## Root cause
Both `tui` and `tui_app_server` had early returns after `tui::init()`
that did not guarantee terminal restore. When that happened, shells like
`zsh` inherited the altered terminal state.
## Changes
- Add a restore guard around `run_ratatui_app()` in both `tui` and
`tui_app_server`
- Route early exits through the guard instead of relying on scattered
manual restore calls
- Ensure terminal restore still happens on normal shutdown
2026-03-24 14:29:29 -06:00
..
2026-03-24 08:51:32 -06:00
2026-03-16 10:49:19 -06:00
2026-03-24 12:52:56 -07:00
2026-03-24 20:27:10 +00:00
2026-03-16 16:48:15 -07:00
2026-03-16 10:49:19 -06:00
2026-03-24 13:26:23 -07:00
2026-03-16 16:48:15 -07:00
2026-03-16 10:49:19 -06:00
2026-03-17 16:11:27 -06:00
2026-03-16 10:49:19 -06:00
2026-03-16 16:48:15 -07:00
2026-03-16 10:49:19 -06:00
2026-03-16 10:49:19 -06:00
2026-03-18 09:35:05 -06:00
2026-03-23 15:19:01 -07:00
2026-03-16 16:48:15 -07:00
2026-03-23 12:38:39 -07:00
2026-03-24 14:01:06 -06:00
2026-03-24 09:36:26 -07:00
2026-03-16 16:48:15 -07:00
2026-03-16 10:49:19 -06:00
2026-03-24 13:26:23 -07:00
2026-03-16 10:49:19 -06:00
2026-03-16 10:49:19 -06:00
2026-03-16 10:49:19 -06:00
2026-03-16 10:49:19 -06:00
2026-03-16 10:49:19 -06:00
2026-03-16 10:49:19 -06:00
2026-03-16 16:48:15 -07:00
2026-03-17 22:05:41 -07:00
2026-03-24 13:26:23 -07:00
2026-03-16 10:49:19 -06:00
2026-03-16 10:49:19 -06:00
2026-03-16 16:48:15 -07:00
2026-03-16 10:49:19 -06:00
2026-03-16 10:49:19 -06:00
2026-03-19 21:29:22 +00:00
2026-03-16 10:49:19 -06:00
2026-03-16 10:49:19 -06:00
2026-03-24 14:29:29 -06:00
2026-03-16 10:49:19 -06:00
2026-03-16 16:48:15 -07:00
2026-03-21 15:06:10 -06:00
2026-03-16 16:48:15 -07:00
2026-03-16 10:49:19 -06:00
2026-03-16 16:48:15 -07:00
2026-03-16 10:49:19 -06:00
2026-03-16 10:49:19 -06:00
2026-03-16 10:49:19 -06:00
2026-03-16 10:49:19 -06:00
2026-03-16 16:48:15 -07:00
2026-03-16 16:48:15 -07:00
2026-03-16 10:49:19 -06:00
2026-03-16 16:48:15 -07:00
2026-03-19 00:46:15 -07:00
2026-03-16 16:48:15 -07:00
2026-03-18 09:35:05 -06:00
2026-03-16 10:49:19 -06:00
2026-03-16 10:49:19 -06:00
2026-03-19 21:28:33 -07:00
2026-03-20 03:19:22 +00:00
2026-03-16 10:49:19 -06:00
2026-03-16 10:49:19 -06:00
2026-03-16 10:49:19 -06:00
2026-03-16 10:49:19 -06:00
2026-03-16 16:48:15 -07:00
2026-03-19 20:12:07 -07:00
2026-03-16 10:49:19 -06:00
2026-03-16 10:49:19 -06:00
2026-03-16 10:49:19 -06:00
2026-03-16 10:49:19 -06:00
2026-03-16 10:49:19 -06:00
2026-03-16 10:49:19 -06:00
2026-03-16 21:38:07 -07:00
2026-03-16 16:48:15 -07:00