From f95834446f8d722cc09b4ed8eab642d1cc01c505 Mon Sep 17 00:00:00 2001 From: Hiltjo Posthuma Date: Thu, 16 Feb 2023 20:32:23 +0100 Subject: sfeed_curses: add SCO keys for next, prior (CSI I and CSI G) This fixes the page up and page down keys in the cons25 console on DragonFlyBSD. See also the table: https://invisible-island.net/xterm/ctlseqs/ctlseqs.html Section "Non-Function Keys". --- sfeed_curses.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sfeed_curses.c') diff --git a/sfeed_curses.c b/sfeed_curses.c index abfa95b..841f276 100644 --- a/sfeed_curses.c +++ b/sfeed_curses.c @@ -2119,12 +2119,15 @@ main(int argc, char *argv[]) mousereport(button, release, keymask, x - 1, y - 1); break; + /* DEC/SUN: ESC O char, HP: ESC char or SCO: ESC [ char */ case 'A': goto keyup; /* arrow up */ case 'B': goto keydown; /* arrow down */ case 'C': goto keyright; /* arrow right */ case 'D': goto keyleft; /* arrow left */ case 'F': goto endpos; /* end */ + case 'G': goto nextpage; /* page down */ case 'H': goto startpos; /* home */ + case 'I': goto prevpage; /* page up */ default: if (!(ch >= '0' && ch <= '9')) break; -- cgit v1.2.3