sdlterm/demo.py
changeset 48 1f00e90fd72a
parent 47 537d7c6b48a2
child 69 4e7be77bafff
equal deleted inserted replaced
47:537d7c6b48a2 48:1f00e90fd72a
    14     term.putch(5, 5, 'W')
    14     term.putch(5, 5, 'W')
    15     term.commit()
    15     term.commit()
    16 
    16 
    17     while True:
    17     while True:
    18         event = term.get_next_event()
    18         event = term.get_next_event()
    19         break
    19         print(event)
       
    20         if event[0] == 'keypress' and event[1] == 'escape':
       
    21             break
    20 
    22