From 90d60171a56a5cb729c9a09842a643a4d60098a1 Mon Sep 17 00:00:00 2001
From: Christian Heller <c.heller@plomlompom.de>
Date: Fri, 25 Sep 2015 04:17:52 +0200
Subject: [PATCH] New client: Read Q as quit signal.

---
 client_prototype.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/client_prototype.py b/client_prototype.py
index cdbe616..f239242 100644
--- a/client_prototype.py
+++ b/client_prototype.py
@@ -144,7 +144,9 @@ def main(stdscr):
     set_window_geometries()
     while True:
         draw_screen()
-        stdscr.getch()
+        char = stdscr.getkey()
+        if ('Q' == char):
+            exit()
 
 def foo():
     winmap = ['.', 'o', '.', 'o', 'O', 'o', '.', 'o', '.', 'x', 'y', 'x']
-- 
2.30.2