getkey.py allow for easy viewing of special keys
This commit is contained in:
parent
82bbfc0922
commit
222fdb83aa
|
@ -0,0 +1,13 @@
|
|||
#!/usr/bin/env python3
|
||||
import curses
|
||||
|
||||
def main(stdscr):
|
||||
while True:
|
||||
k = stdscr.getkey()
|
||||
print(repr(k))
|
||||
|
||||
|
||||
|
||||
curses.wrapper(main)
|
||||
|
||||
|
Loading…
Reference in New Issue