From: Christian Heller Date: Fri, 25 Sep 2015 02:17:52 +0000 (+0200) Subject: New client: Read Q as quit signal. X-Git-Tag: tce~272 X-Git-Url: https://plomlompom.com/repos/%7B%7B%20web_path%20%7D%7D/%7B%7Bprefix%7D%7D/%7B%7Bdb.prefix%7D%7D/calendar?a=commitdiff_plain;h=90d60171a56a5cb729c9a09842a643a4d60098a1;p=plomrogue New client: Read Q as quit signal. --- 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']