home
·
contact
·
privacy
projects
/
plomrogue
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
New client: Read Q as quit signal.
[plomrogue]
/
client_prototype.py
diff --git
a/client_prototype.py
b/client_prototype.py
index cdbe616dad24157b40594f51c7800ae2867dfcd1..f239242ec20c4180c1caa9d20b7116442ffb5e14 100644
(file)
--- 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']