-
Notifications
You must be signed in to change notification settings - Fork 983
Open
Description
Describe the bug
If the app panics and needs recovering, or even in normal exiting state, the window title stays as it was set by bubbletea after bubbletea exits, leaving the terminal in a different state than before the app was started.
Setup
Please complete the following information along with version numbers, if applicable.
- OS: ubuntu (wsl2)
- Shell: bash
- Terminal Emulator: Windows Terminal
- Terminal Multiplexer: n/a
Expected behavior
I am not 100% sure what is available through OSC, but one of these would be ideal:
- "restore" the title (looks like it may be available in OSC, if I'm reading right?)
- Query the current title, before the app can explicitly set a title, store that, then re-set it post-
tea.Quit
and similar recovery scenarios. - Worst-case scenario, set title to
""
, which at least in some terminals will revert the title back to its original state (does with Windows Terminal).
Metadata
Metadata
Assignees
Labels
No labels