22 lines
347 B
Python
Executable file
22 lines
347 B
Python
Executable file
#!/usr/bin/env python3
|
|
|
|
|
|
import curses,time
|
|
|
|
def main(stdscr):
|
|
stdscr.clear()
|
|
stdscr.refresh()
|
|
k=''
|
|
cx = cy = 0
|
|
while k != 'q':
|
|
k = stdscr.getkey()
|
|
height, width = stdscr.getmaxyx()
|
|
if k == 'KEY_UP':
|
|
cy += -1
|
|
|
|
|
|
|
|
if __name__ == "__main__":
|
|
curses.wrapper(main)
|
|
print('bye!')
|
|
|