diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2013-04-14 19:40:13 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2013-04-14 19:40:13 +0000 |
commit | 559430dc28b2d68ab1ae8c54b9d6725b15c8c0a6 (patch) | |
tree | f53b086d642a15a745da88dee30f4df92d049eba | |
parent | 2cf7e6155f77ace362632328271b7939aa1ad60e (diff) |
Add escape codes for F21 to F24, continuing the existing sequence. Note that
vt100 and vt220 do not have such function keys, and there is no clear consensus,
for terminal emulations supporting F21 to F24, of the escape codes to use
(linux stops at F20, and Wyse and QNX use incompatible sequences for keys up
to F20).
From "Creamy" on tech@
-rw-r--r-- | sys/dev/wscons/wsemul_vt100_keys.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/sys/dev/wscons/wsemul_vt100_keys.c b/sys/dev/wscons/wsemul_vt100_keys.c index 035088c4128..e90f918fc70 100644 --- a/sys/dev/wscons/wsemul_vt100_keys.c +++ b/sys/dev/wscons/wsemul_vt100_keys.c @@ -1,4 +1,4 @@ -/* $OpenBSD: wsemul_vt100_keys.c,v 1.5 2009/09/05 14:49:20 miod Exp $ */ +/* $OpenBSD: wsemul_vt100_keys.c,v 1.6 2013/04/14 19:40:12 miod Exp $ */ /* $NetBSD: wsemul_vt100_keys.c,v 1.3 1999/04/22 20:06:02 mycroft Exp $ */ /* @@ -58,6 +58,10 @@ static const char *vt100_fkeys[] = { "\033[32~", "\033[33~", "\033[34~", /* F20 */ + "\033[35~", + "\033[36~", + "\033[37~", + "\033[38~" }; static const char *vt100_pfkeys[] = { @@ -86,11 +90,11 @@ wsemul_vt100_translate(void *cookie, keysym_t in, const char **out) struct wsemul_vt100_emuldata *edp = cookie; static char c; - if (in >= KS_f1 && in <= KS_f20) { + if (in >= KS_f1 && in <= KS_f24) { *out = vt100_fkeys[in - KS_f1]; return (5); } - if (in >= KS_F1 && in <= KS_F20) { + if (in >= KS_F1 && in <= KS_F24) { *out = vt100_fkeys[in - KS_F1]; return (5); } |