boon

unix terminal framework
git clone https://git.ce9e.org/boon.git

commit
1187d8d35877001a50de4fe643713b4bd449b9b5
parent
bc266af4b3e00c7cdf0b871e21c75ec2bec6f51e
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2020-07-13 04:44
getch: let python do the decoding

Diffstat

M boon.py 2 +-

1 files changed, 1 insertions, 1 deletions


diff --git a/boon.py b/boon.py

@@ -94,7 +94,7 @@ def getch(timeout=0.5):
   94    94 		flags[6][termios.VMIN] = 0
   95    95 		flags[6][termios.VTIME] = 0
   96    96 		termios.tcsetattr(fd, termios.TCSADRAIN, flags)
   97    -1 		return os.read(fd, 8).decode('ascii')
   -1    97 		return sys.stdin.read(8)
   98    98 
   99    99 
  100   100 class App: