From 084cd1b40f5e2fa3088b23840d3021cd5588795e Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Wed, 30 Jan 2019 20:45:06 +0100 Subject: more keys --- fbcon.c | 29 +++++++++++++++++++++++++---- 1 file changed, 25 insertions(+), 4 deletions(-) (limited to 'fbcon.c') 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~", }; /* ---------------------------------------------------------------------- */ -- cgit