mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-17 05:54:59 +02:00
...
This commit is contained in:
@@ -564,8 +564,8 @@ class Child:
|
||||
return True
|
||||
|
||||
def reset_termios_state(self) -> None:
|
||||
if s := getattr(self, 'initial_termios_state', None):
|
||||
if (s := getattr(self, 'initial_termios_state', None)) and self.child_fd is not None:
|
||||
try:
|
||||
termios.tcsetattr(s, termios.TCSANOW)
|
||||
termios.tcsetattr(self.child_fd, termios.TCSANOW, s)
|
||||
except OSError:
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user