From 4efbaf6e0a5936d2bdeaf495db1b49ca9a3724c9 Mon Sep 17 00:00:00 2001
From: Christian Heller <c.heller@plomlompom.de>
Date: Fri, 25 Sep 2015 05:11:31 +0200
Subject: [PATCH] New client: Fix crashes from window resizing.

---
 client_prototype.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/client_prototype.py b/client_prototype.py
index f239242..31d66f0 100644
--- a/client_prototype.py
+++ b/client_prototype.py
@@ -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():
-- 
2.30.2