fixed some bugs
This commit is contained in:
parent
5ca5554795
commit
18db1f8522
1 changed files with 5 additions and 3 deletions
4
nboard
4
nboard
|
@ -10,7 +10,7 @@ data = {}
|
||||||
def main(stdscr):
|
def main(stdscr):
|
||||||
stdscr.clear()
|
stdscr.clear()
|
||||||
stdscr.refresh()
|
stdscr.refresh()
|
||||||
k=''
|
k='NOU'
|
||||||
height, width = stdscr.getmaxyx()
|
height, width = stdscr.getmaxyx()
|
||||||
vx = vy = tx = ty = 0
|
vx = vy = tx = ty = 0
|
||||||
cx = width // 2
|
cx = width // 2
|
||||||
|
@ -97,6 +97,8 @@ def main(stdscr):
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
try:
|
||||||
curses.wrapper(main)
|
curses.wrapper(main)
|
||||||
|
except KeyboardInterrupt:
|
||||||
print('bye!')
|
print('bye!')
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue