CLI: interpretation of VT100 keys was flipped
The mapping from a VT100 key to NCURSES PgUp/PgDn was inverted,
resulting in different behavior for a keyboard and monitor plugged
in to the Pi than when SSH'ed in to the unit.
@@ -810,9 +810,9 @@ def gui_main(stdscr):
elif c1 == 79 and c2 == 118:
c = curses.KEY_RIGHT
elif c1 == 79 and c2 == 121:
- c = curses.KEY_NPAGE # aka PgUp
+ c = curses.KEY_PPAGE # aka PgUp
elif c1 == 79 and c2 == 115:
- c = curses.KEY_PPAGE # aka PgDn
+ c = curses.KEY_NPAGE # aka PgDn
elif c1 == 79 and c2 == 119:
c = curses.KEY_HOME
elif c1 == 79 and c2 == 113:
