From: Christian Heller Date: Fri, 25 Sep 2015 03:11:31 +0000 (+0200) Subject: New client: Fix crashes from window resizing. X-Git-Tag: tce~271 X-Git-Url: https://plomlompom.com/repos/%7B%7B%20web_path%20%7D%7D/decks/%7B%7Bprefix%7D%7D/process_titles?a=commitdiff_plain;h=4efbaf6e0a5936d2bdeaf495db1b49ca9a3724c9;p=plomrogue New client: Fix crashes from window resizing. --- 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():