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=blobdiff_plain;ds=sidebyside;f=client_prototype.py;h=31d66f085c70cfd7d6a434d7a65bbffaa8969968;hb=4efbaf6e0a5936d2bdeaf495db1b49ca9a3724c9;hp=f239242ec20c4180c1caa9d20b7116442ffb5e14;hpb=90d60171a56a5cb729c9a09842a643a4d60098a1;p=plomrogue 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():