Compare commits

...

2 Commits

Author SHA1 Message Date
xfnw 7c288d91da use your terminal's colors: why is that not on by default lmao 2021-07-22 17:07:29 -04:00
xfnw e66b4b31cf redraw with control+l 2021-07-22 15:53:41 -04:00
1 changed files with 4 additions and 5 deletions

9
nboard
View File

@ -10,6 +10,7 @@ data = {}
def main(stdscr):
curses.halfdelay(5)
curses.use_default_colors()
stdscr.erase()
stdscr.refresh()
@ -30,10 +31,8 @@ def main(stdscr):
height, width = stdscr.getmaxyx()
if k == '\x1b':
k=""
for i in range(5):
k += stdscr.getkey()
if k == '\x0c':
stdscr.clear()
# detect where to move cursor
if k == 'KEY_UP':
@ -118,7 +117,7 @@ def main(stdscr):
k = 'NOU'
time.sleep(0)
except json.decoder.JSONDecodeError:
time.sleep(0.5)
time.sleep(0.1)
if __name__ == "__main__":