When doing a reset also reset termios to its initial state

This commit is contained in:
Kovid Goyal
2025-10-15 07:56:45 +05:30
parent 7c237dcb02
commit ee9a5386b9
4 changed files with 22 additions and 1 deletions

View File

@@ -1333,6 +1333,9 @@ class Window:
b |= b << 8
self.screen.send_escape_code_to_child(ESC_OSC, f'{code};rgb:{r:04x}/{g:04x}/{b:04x}')
def on_reset(self) -> None:
self.child.reset_termios_state()
def notify_child_of_resize(self) -> None:
pty_size = self.last_reported_pty_size
if pty_size[0] > -1 and self.screen.in_band_resize_notification: