sdlterm/demo.py
changeset 48 1f00e90fd72a
parent 47 537d7c6b48a2
child 69 4e7be77bafff
--- a/sdlterm/demo.py	Sat Jan 05 00:40:27 2013 +0100
+++ b/sdlterm/demo.py	Sat Jan 05 12:40:32 2013 +0100
@@ -16,5 +16,7 @@
 
     while True:
         event = term.get_next_event()
-        break
+        print(event)
+        if event[0] == 'keypress' and event[1] == 'escape':
+            break