[F] Fix #298?
This commit is contained in:
+3
-1
@@ -134,9 +134,11 @@ def unix_read_osc(seq: int) -> str:
|
|||||||
# Terminate with sequence terminator [\ or bell ^G
|
# Terminate with sequence terminator [\ or bell ^G
|
||||||
if code.endswith('\x1b\\') or code.endswith('\a'):
|
if code.endswith('\x1b\\') or code.endswith('\a'):
|
||||||
break
|
break
|
||||||
signal.alarm(0)
|
|
||||||
except IOError:
|
except IOError:
|
||||||
pass
|
pass
|
||||||
|
finally:
|
||||||
|
# Disable alarm
|
||||||
|
signal.alarm(0)
|
||||||
|
|
||||||
# Reset terminal back to normal mode (previously set to raw mode)
|
# Reset terminal back to normal mode (previously set to raw mode)
|
||||||
termios.tcsetattr(fd, termios.TCSADRAIN, settings)
|
termios.tcsetattr(fd, termios.TCSADRAIN, settings)
|
||||||
|
|||||||
Reference in New Issue
Block a user