Introduction
Introduction Statistics Contact Development Disclaimer Help
sfeed_curses: add SUN keys support - sfeed - RSS and Atom parser
git clone git://git.codemadness.org/sfeed
Log
Files
Refs
README
LICENSE
---
commit eb635966d33e2718094aab9d6ee06b5655b8efeb
parent f95834446f8d722cc09b4ed8eab642d1cc01c505
Author: Hiltjo Posthuma <[email protected]>
Date: Thu, 16 Feb 2023 20:33:51 +0100
sfeed_curses: add SUN keys support
This fixes the keys on the sun-color console on OpenIndiana/Illumos/OpenSolaris
(and other systems using these keys).
See also the table:
https://invisible-island.net/xterm/ctlseqs/ctlseqs.html
Section "Non-Function Keys".
Diffstat:
M sfeed_curses.c | 7 +++++++
1 file changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/sfeed_curses.c b/sfeed_curses.c
@@ -2146,6 +2146,13 @@ main(int argc, char *argv[])
case 7: goto startpos; /* home…
case 8: goto endpos; /* end:…
}
+ } else if (ch == 'z') { /* SUN: ESC [ …
+ switch (i) {
+ case 214: goto startpos; /* ho…
+ case 216: goto prevpage; /* pa…
+ case 220: goto endpos; /* en…
+ case 222: goto nextpage; /* pa…
+ }
}
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.