From feea0c6ddb81321d932aa3761edfb6f96bab9eb8 Mon Sep 17 00:00:00 2001 From: hut Date: Thu, 8 Apr 2010 19:24:40 +0200 Subject: added doc/print_keys.py --- doc/print_keys.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 doc/print_keys.py (limited to 'doc') diff --git a/doc/print_keys.py b/doc/print_keys.py new file mode 100644 index 00000000..0790acab --- /dev/null +++ b/doc/print_keys.py @@ -0,0 +1,14 @@ +#!/usr/bin/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) + -- cgit 1.4.1-2-gfad0