Scroll Protocoin lines a page at a time
This commit is contained in:
parent
a090722d02
commit
c4643daa36
5
main.py
5
main.py
|
@ -1078,11 +1078,12 @@ while True:
|
||||||
protocoin = {}
|
protocoin = {}
|
||||||
protocoin_line = 0
|
protocoin_line = 0
|
||||||
elif button == 'j' or c == curses.KEY_DOWN or c == KEY_SPACE:
|
elif button == 'j' or c == curses.KEY_DOWN or c == KEY_SPACE:
|
||||||
protocoin_line += 1
|
if protocoin_line+19 < len(lines):
|
||||||
|
protocoin_line += 19
|
||||||
stdscr.erase()
|
stdscr.erase()
|
||||||
elif button == 'k' or c == curses.KEY_UP:
|
elif button == 'k' or c == curses.KEY_UP:
|
||||||
if protocoin_line > 0:
|
if protocoin_line > 0:
|
||||||
protocoin_line -= 1
|
protocoin_line -= 19
|
||||||
stdscr.erase()
|
stdscr.erase()
|
||||||
else:
|
else:
|
||||||
try_highlight()
|
try_highlight()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user