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%7Bdeck_id%7D%7D/cards/%7B%7Bcard_id%7D%7D/static/git-logo.png?a=commitdiff_plain;h=4efbaf6e0a5936d2bdeaf495db1b49ca9a3724c9;hp=90d60171a56a5cb729c9a09842a643a4d60098a1;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():