home
·
contact
·
privacy
projects
/
plomrogue
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3376bf7
)
New client: Read Q as quit signal.
author
Christian Heller
<c.heller@plomlompom.de>
Fri, 25 Sep 2015 02:17:52 +0000
(
04:17
+0200)
committer
Christian Heller
<c.heller@plomlompom.de>
Fri, 25 Sep 2015 02:17:52 +0000
(
04:17
+0200)
client_prototype.py
patch
|
blob
|
history
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']