diff options
Diffstat (limited to 'doc/tools/print_keys.py')
-rwxr-xr-x | doc/tools/print_keys.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/doc/tools/print_keys.py b/doc/tools/print_keys.py new file mode 100755 index 00000000..17d2513b --- /dev/null +++ b/doc/tools/print_keys.py @@ -0,0 +1,14 @@ +#!/usr/bin/env python +""" +You can use this tool to find out values of keypresses +""" + +from curses import * + +sep = '; ' + +@wrapper +def main(w): + while True: + w.addstr(str(w.getch()) + sep) + |