home · contact · privacy
New client: Fix crashes from window resizing.
[plomrogue] / client_prototype.py
index cdbe616dad24157b40594f51c7800ae2867dfcd1..31d66f085c70cfd7d6a434d7a65bbffaa8969968 100644 (file)
@@ -144,7 +144,9 @@ def main(stdscr):
     set_window_geometries()
     while True:
         draw_screen()
-        stdscr.getch()
+        char = stdscr.getch()
+        if (char >= 0 and chr(char) == 'Q'):
+            exit()
 
 def foo():
     winmap = ['.', 'o', '.', 'o', 'O', 'o', '.', 'o', '.', 'x', 'y', 'x']