fix(tui): reset extended keyboard modes

This commit is contained in:
Brooklyn Nicholson
2026-04-30 12:05:15 -05:00
parent 87e259a678
commit cad7944b92
3 changed files with 6 additions and 0 deletions

2
cli.py
View File

@@ -1556,6 +1556,8 @@ _TERMINAL_INPUT_MODE_RESET_SEQ = (
"\x1b[?1004l" # disable focus events
"\x1b[?2004l" # disable bracketed paste
"\x1b[?1049l" # leave alt screen (if stuck there)
"\x1b[<u" # pop kitty keyboard mode
"\x1b[>4m" # reset modifyOtherKeys
"\x1b[0m" # reset text attributes
"\x1b[?25h" # ensure cursor visible
)