summary refs log tree commit diff stats
path: root/doc
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-04-09 04:19:58 +0200
committerhut <hut@lavabit.com>2010-04-09 04:19:58 +0200
commitc78267904725b3838db4ae6430e71ca83b7f6846 (patch)
tree862ac336fdd21a8e0ff740648badec92562953f2 /doc
parentd6cd804c94c998f4bcc165d40c2c4a948f57c04e (diff)
parent035a39a8a468ba842fd69a2370aba8ac3c1f3d39 (diff)
downloadranger-c78267904725b3838db4ae6430e71ca83b7f6846.tar.gz
Merge branch 'master' into devel
Diffstat (limited to 'doc')
-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)
+