home · contact · privacy
New client: Fix crashes from window resizing.
authorChristian Heller <c.heller@plomlompom.de>
Fri, 25 Sep 2015 03:11:31 +0000 (05:11 +0200)
committerChristian Heller <c.heller@plomlompom.de>
Fri, 25 Sep 2015 03:11:31 +0000 (05:11 +0200)
client_prototype.py

index f239242ec20c4180c1caa9d20b7116442ffb5e14..31d66f085c70cfd7d6a434d7a65bbffaa8969968 100644 (file)
@@ -144,8 +144,8 @@ def main(stdscr):
     set_window_geometries()
     while True:
         draw_screen()
-        char = stdscr.getkey()
-        if ('Q' == char):
+        char = stdscr.getch()
+        if (char >= 0 and chr(char) == 'Q'):
             exit()
 
 def foo():