diff --git a/include/notcurses.h b/include/notcurses.h index dde571aeb..2d6e85ec8 100644 --- a/include/notcurses.h +++ b/include/notcurses.h @@ -238,6 +238,36 @@ API struct ncplane* notcurses_top(struct notcurses* n); #define NCKEY_F28 suppuabize(48) #define NCKEY_F29 suppuabize(49) #define NCKEY_F30 suppuabize(50) +#define NCKEY_F31 suppuabize(51) +#define NCKEY_F32 suppuabize(52) +#define NCKEY_F33 suppuabize(53) +#define NCKEY_F34 suppuabize(54) +#define NCKEY_F35 suppuabize(55) +#define NCKEY_F36 suppuabize(56) +#define NCKEY_F37 suppuabize(57) +#define NCKEY_F38 suppuabize(58) +#define NCKEY_F39 suppuabize(59) +#define NCKEY_F40 suppuabize(60) +#define NCKEY_F41 suppuabize(61) +#define NCKEY_F42 suppuabize(62) +#define NCKEY_F43 suppuabize(63) +#define NCKEY_F44 suppuabize(64) +#define NCKEY_F45 suppuabize(65) +#define NCKEY_F46 suppuabize(66) +#define NCKEY_F47 suppuabize(67) +#define NCKEY_F48 suppuabize(68) +#define NCKEY_F49 suppuabize(69) +#define NCKEY_F50 suppuabize(70) +#define NCKEY_F51 suppuabize(71) +#define NCKEY_F52 suppuabize(72) +#define NCKEY_F53 suppuabize(73) +#define NCKEY_F54 suppuabize(74) +#define NCKEY_F55 suppuabize(75) +#define NCKEY_F56 suppuabize(76) +#define NCKEY_F57 suppuabize(77) +#define NCKEY_F58 suppuabize(78) +#define NCKEY_F59 suppuabize(79) +#define NCKEY_F60 suppuabize(80) // ... leave room for up to 100 function keys, egads #define NCKEY_ENTER suppuabize(121) #define NCKEY_CLS suppuabize(122) // "clear-screen or erase" diff --git a/src/lib/input.c b/src/lib/input.c index c6c9f629f..e49849bc7 100644 --- a/src/lib/input.c +++ b/src/lib/input.c @@ -387,6 +387,35 @@ int prep_special_keys(notcurses* nc){ { .tinfo = "kf28", .key = NCKEY_F28, }, { .tinfo = "kf29", .key = NCKEY_F29, }, { .tinfo = "kf30", .key = NCKEY_F30, }, + { .tinfo = "kf31", .key = NCKEY_F31, }, + { .tinfo = "kf32", .key = NCKEY_F32, }, + { .tinfo = "kf33", .key = NCKEY_F33, }, + { .tinfo = "kf34", .key = NCKEY_F34, }, + { .tinfo = "kf35", .key = NCKEY_F35, }, + { .tinfo = "kf36", .key = NCKEY_F36, }, + { .tinfo = "kf37", .key = NCKEY_F37, }, + { .tinfo = "kf38", .key = NCKEY_F38, }, + { .tinfo = "kf39", .key = NCKEY_F39, }, + { .tinfo = "kf40", .key = NCKEY_F40, }, + { .tinfo = "kf41", .key = NCKEY_F41, }, + { .tinfo = "kf42", .key = NCKEY_F42, }, + { .tinfo = "kf43", .key = NCKEY_F43, }, + { .tinfo = "kf44", .key = NCKEY_F44, }, + { .tinfo = "kf45", .key = NCKEY_F45, }, + { .tinfo = "kf46", .key = NCKEY_F46, }, + { .tinfo = "kf47", .key = NCKEY_F47, }, + { .tinfo = "kf48", .key = NCKEY_F48, }, + { .tinfo = "kf49", .key = NCKEY_F49, }, + { .tinfo = "kf50", .key = NCKEY_F50, }, + { .tinfo = "kf51", .key = NCKEY_F51, }, + { .tinfo = "kf52", .key = NCKEY_F52, }, + { .tinfo = "kf53", .key = NCKEY_F53, }, + { .tinfo = "kf54", .key = NCKEY_F54, }, + { .tinfo = "kf55", .key = NCKEY_F55, }, + { .tinfo = "kf56", .key = NCKEY_F56, }, + { .tinfo = "kf57", .key = NCKEY_F57, }, + { .tinfo = "kf58", .key = NCKEY_F58, }, + { .tinfo = "kf59", .key = NCKEY_F59, }, { .tinfo = "kent", .key = NCKEY_ENTER, }, { .tinfo = "kclr", .key = NCKEY_CLS, }, { .tinfo = "kc1", .key = NCKEY_DLEFT, },