repo.or.cz
/
ranger.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
api.commands: added a TODO entry
[ranger.git]
/
doc
/
print_keys.py
blob
f87a2a408ae3b609de5cc1e9b3ad113ba8a4b55f
1
#!/usr/bin/env python
2
"""
3
You can use this tool to find out values of keypresses
4
"""
5
6
from
curses
import
*
7
8
sep
=
'; '
9
10
@wrapper
11
def
main
(
w
):
12
while True
:
13
w
.
addstr
(
str
(
w
.
getch
()) +
sep
)
14