Introduction
Introduction Statistics Contact Development Disclaimer Help
sfeed_curses: add SCO keys for next, prior (CSI I and CSI G) - sfeed - RSS and …
git clone git://git.codemadness.org/sfeed
Log
Files
Refs
README
LICENSE
---
commit f95834446f8d722cc09b4ed8eab642d1cc01c505
parent 3ee28da0f47d6a3b59d1c8493374df4e01bc0af4
Author: Hiltjo Posthuma <[email protected]>
Date: Thu, 16 Feb 2023 20:32:23 +0100
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".
Diffstat:
M sfeed_curses.c | 3 +++
1 file changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/sfeed_curses.c b/sfeed_curses.c
@@ -2119,12 +2119,15 @@ main(int argc, char *argv[])
mousereport(button, release, keymask, x - 1, y…
break;
+ /* DEC/SUN: ESC O char, HP: ESC char or SCO: ESC [ cha…
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;
You are viewing proxied material from codemadness.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.