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