aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2019-01-30 20:45:06 +0100
committerGerd Hoffmann <kraxel@redhat.com>2019-01-30 20:45:06 +0100
commit084cd1b40f5e2fa3088b23840d3021cd5588795e (patch)
tree5884c94d43264ec40cd97594fe1b228016b4c820
parentf73e9ddcec390ba46201d2f88bd434b62ea1b8cd (diff)
downloadfbida-084cd1b40f5e2fa3088b23840d3021cd5588795e.tar.gz
more keys
-rw-r--r--fbcon.c29
1 files changed, 25 insertions, 4 deletions
diff --git a/fbcon.c b/fbcon.c
index f72d556..9c530dc 100644
--- a/fbcon.c
+++ b/fbcon.c
@@ -181,10 +181,31 @@ struct color *tmt_background(struct TMTATTRS *a)
/* ---------------------------------------------------------------------- */
const char *ansiseq[KEY_MAX] = {
- [ KEY_UP ] = "\x1b[A",
- [ KEY_DOWN ] = "\x1b[B",
- [ KEY_RIGHT ] = "\x1b[C",
- [ KEY_LEFT ] = "\x1b[D",
+ [ KEY_UP ] = "\x1b[A",
+ [ KEY_DOWN ] = "\x1b[B",
+ [ KEY_RIGHT ] = "\x1b[C",
+ [ KEY_LEFT ] = "\x1b[D",
+ [ KEY_END ] = "\x1b[F",
+ [ KEY_HOME ] = "\x1b[H",
+
+ [ KEY_INSERT ] = "\x1b[2~",
+ [ KEY_DELETE ] = "\x1b[3~",
+ [ KEY_PAGEUP ] = "\x1b[5~",
+ [ KEY_PAGEDOWN ] = "\x1b[6~",
+
+ [ KEY_F1 ] = "\x1b[OP",
+ [ KEY_F2 ] = "\x1b[OQ",
+ [ KEY_F3 ] = "\x1b[OR",
+ [ KEY_F4 ] = "\x1b[OS",
+
+ [ KEY_F5 ] = "\x1b[15~",
+ [ KEY_F6 ] = "\x1b[17~",
+ [ KEY_F7 ] = "\x1b[18~",
+ [ KEY_F8 ] = "\x1b[19~",
+ [ KEY_F9 ] = "\x1b[20~",
+ [ KEY_F10 ] = "\x1b[21~",
+ [ KEY_F11 ] = "\x1b[23~",
+ [ KEY_F12 ] = "\x1b[24~",
};
/* ---------------------------------------------------------------------- */