fixed some bugs

This commit is contained in:
lickthecheese 2020-03-21 18:37:02 -04:00
parent 5ca5554795
commit 18db1f8522

4
nboard
View file

@ -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!')