home · contact · privacy
New client: Fix crashes from window resizing.
[plomrogue] / 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():