projects
/
public
/
library.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
borders around browser windows.
[public/library.git]
/
echokey.py
1
#!/usr/bin/env python
2
3
import curses
4
5
def echokey(w):
6
curses.noecho()
7
w.keypad(1)
8
curses.cbreak()
9
w.addstr(19,20, "value")
10
w.addstr(19,40, "name")
11
ch=w.getch()
12
while (1==1):
13
w.addstr(20,20,str(ch))
14
w.addstr(20,40,curses.keyname(ch))
15
ch = w.getch()
16
w.deleteln()
17
18
19
curses.wrapper(echokey)