summary refs log tree commit diff stats
path: root/doc/print_keys.py
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-04-08 19:24:40 +0200
committerhut <hut@lavabit.com>2010-04-08 19:24:40 +0200
commitfeea0c6ddb81321d932aa3761edfb6f96bab9eb8 (patch)
treea9cfed126bf53ba8a68e3c148c64d3c562e15241 /doc/print_keys.py
parent9ea99e21402824ab670d81dc376cb58696edf9a4 (diff)
downloadranger-feea0c6ddb81321d932aa3761edfb6f96bab9eb8.tar.gz
added doc/print_keys.py
Diffstat (limited to 'doc/print_keys.py')
-rw-r--r--doc/print_keys.py14
1 files changed, 14 insertions, 0 deletions
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)
+