mirror of
https://github.com/nvbn/thefuck.git
synced 2025-02-22 04:48:57 +00:00
#298 Fix selecting command
This commit is contained in:
parent
c8550a0ce5
commit
e6af00ef97
@ -17,6 +17,7 @@ except ImportError:
|
|||||||
ch = sys.stdin.read(1)
|
ch = sys.stdin.read(1)
|
||||||
if ch == '\x03': # For compatibility with msvcrt.getch
|
if ch == '\x03': # For compatibility with msvcrt.getch
|
||||||
raise KeyboardInterrupt
|
raise KeyboardInterrupt
|
||||||
|
return ch
|
||||||
finally:
|
finally:
|
||||||
termios.tcsetattr(fd, termios.TCSADRAIN, old)
|
termios.tcsetattr(fd, termios.TCSADRAIN, old)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user