summary refs log tree commit diff stats
path: root/doc
diff options
context:
space:
mode:
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)
+
href='#n23'>23 24 25 26 27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50