summary refs log tree commit diff stats
path: root/doc/print_keys.py
blob: 0790acab24c36a2277451c124e4ed7d47b785bb9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
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)
in main cn0: (((1 boolean)) <- ((lesser-or-equal)) ((4 literal)) ((5 literal))) nil nil cn0: checking arg ((4 literal)) cn0: checking arg ((5 literal)) cn0: checking oarg ((1 boolean)) maybe-add: ((1 boolean)) cn1: (((1 boolean)) <- ((lesser-or-equal)) ((4 literal)) ((5 literal))) schedule: main run: main 0: (((1 boolean)) <- ((lesser-or-equal)) ((4 literal)) ((5 literal))) run: main 0: t => ((1 boolean)) mem: ((1 boolean)): 1 <= t schedule: done with routine nil