X-Git-Url: https://plomlompom.com/repos/berlin_corona.txt?a=blobdiff_plain;ds=sidebyside;f=client_prototype.py;h=31d66f085c70cfd7d6a434d7a65bbffaa8969968;hb=4efbaf6e0a5936d2bdeaf495db1b49ca9a3724c9;hp=cdbe616dad24157b40594f51c7800ae2867dfcd1;hpb=3376bf71bdd423184e09bae733761134a87c4790;p=plomrogue diff --git a/client_prototype.py b/client_prototype.py index cdbe616..31d66f0 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.getch() + if (char >= 0 and chr(char) == 'Q'): + exit() def foo(): winmap = ['.', 'o', '.', 'o', 'O', 'o', '.', 'o', '.', 'x', 'y', 'x']