summary refs log tree commit diff stats
path: root/Makefile
Commit message (Expand)AuthorAgeFilesLines
* make clean: fixedhut2010-04-071-1/+1
* Makefile: improvementshut2010-04-031-2/+2
* clean uphut2010-03-311-12/+0
* make test: reduce verbosityhut2010-03-261-1/+1
* fixed make cleanhut2010-03-251-1/+1
* make clean: safer method of cleaninghut2010-03-221-1/+1
* make compile: create pyc files toohut2010-03-221-1/+2
* make test: don't use "clean" before "test"hut2010-03-211-1/+1
* make install: chmod after copyinghut2010-03-141-0/+2
* incremented verison number v1.0.4hut2010-03-121-1/+1
* make install: catch an exceptionhut2010-03-121-0/+4
* make push: removed "hut" repohut2010-03-121-1/+0
* misc changes, make installhut2010-03-121-7/+34
* make snapshot: changed the format of the filenamehut2010-03-081-2/+3
* make minimal_snapshot: snapshot with only neccessary fileshut2010-03-081-1/+13
* make clean: fixedhut2010-02-281-2/+2
* Makefile: added make info + some improvementshut2010-02-271-7/+22
* added make snapshothut2010-02-251-0/+4
* make clean: delete pyo files as well.hut2010-02-251-1/+1
* added Makefilehut2010-02-251-0/+39
d=b3d031a913814900467358b2adf20a148bf6de1a'>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)