about summary refs log tree commit diff stats
path: root/js/games/nluqo.github.io/~bh/ssch10
diff options
context:
space:
mode:
Diffstat (limited to 'js/games/nluqo.github.io/~bh/ssch10')
0 files changed, 0 insertions, 0 deletions
> ^
feea0c6d ^
feea0c6d ^
b3d031a9 ^
ab41c776 ^
b3d031a9 ^




d1a1173d ^
b3d031a9 ^


2bf1362a ^
b3d031a9 ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
                     



                                                      
                                                                  
 
             
 
 
                
 




                                             
               


                                                              
             
                                                
#!/usr/bin/env python
"""
You can use this tool to find out values of keypresses
"""

from __future__ import (absolute_import, division, print_function)

import curses


SEPARATOR = '; '


@curses.wrapper
def main(window):
    curses.mousemask(curses.ALL_MOUSE_EVENTS)
    curses.mouseinterval(0)
    while True:
        char = window.getch()
        if char == curses.KEY_MOUSE:
            window.addstr(repr(curses.getmouse()) + SEPARATOR)
        else:
            window.addstr(str(char) + SEPARATOR)