Compare commits
2 Commits
06d9fce20a
...
7c288d91da
Author | SHA1 | Date |
---|---|---|
xfnw | 7c288d91da | |
xfnw | e66b4b31cf |
9
nboard
9
nboard
|
@ -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__":
|
||||
|
|
Loading…
Reference in New Issue