curses: Remove f13-f20

No longer supported by keys, and these are not a thing in the real world
This commit is contained in:
Fabian Boehm 2024-04-02 21:32:21 +02:00
parent 8164855b70
commit fe95e4f4cd
2 changed files with 1 additions and 20 deletions

View file

@ -126,15 +126,8 @@ pub struct Term {
pub key_f10: Option<CString>,
pub key_f11: Option<CString>,
pub key_f12: Option<CString>,
pub key_f13: Option<CString>,
pub key_f14: Option<CString>,
pub key_f15: Option<CString>,
pub key_f16: Option<CString>,
pub key_f17: Option<CString>,
pub key_f18: Option<CString>,
pub key_f19: Option<CString>,
pub key_f20: Option<CString>,
// Note key_f21 through key_f63 are available but no actual keyboard supports them.
// key_f13 and up are also basically unused and not supported by key.rs
pub key_find: Option<CString>,
pub key_help: Option<CString>,
pub key_home: Option<CString>,
@ -274,16 +267,7 @@ impl Term {
key_f10: get_str_cap(&db, "k;"),
key_f11: get_str_cap(&db, "F1"),
key_f12: get_str_cap(&db, "F2"),
key_f13: get_str_cap(&db, "F3"),
key_f14: get_str_cap(&db, "F4"),
key_f15: get_str_cap(&db, "F5"),
key_f16: get_str_cap(&db, "F6"),
key_f17: get_str_cap(&db, "F7"),
key_f18: get_str_cap(&db, "F8"),
key_f19: get_str_cap(&db, "F9"),
key_f2: get_str_cap(&db, "k2"),
key_f20: get_str_cap(&db, "FA"),
// Note key_f21 through key_f63 are available but no actual keyboard supports them.
key_f3: get_str_cap(&db, "k3"),
key_f4: get_str_cap(&db, "k4"),
key_f5: get_str_cap(&db, "k5"),

View file

@ -1090,9 +1090,6 @@ fn create_input_terminfo() -> Box<[TerminfoMapping]> {
terminfo_add!(key_f1), terminfo_add!(key_f2), terminfo_add!(key_f3), terminfo_add!(key_f4),
terminfo_add!(key_f5), terminfo_add!(key_f6), terminfo_add!(key_f7), terminfo_add!(key_f8),
terminfo_add!(key_f9), terminfo_add!(key_f10), terminfo_add!(key_f11), terminfo_add!(key_f12),
terminfo_add!(key_f13), terminfo_add!(key_f14), terminfo_add!(key_f15), terminfo_add!(key_f16),
terminfo_add!(key_f17), terminfo_add!(key_f18), terminfo_add!(key_f19), terminfo_add!(key_f20),
// Note key_f21 through key_f63 are available but no actual keyboard supports them.
terminfo_add!(key_find), terminfo_add!(key_help), terminfo_add!(key_home),
terminfo_add!(key_ic), terminfo_add!(key_il), terminfo_add!(key_left), terminfo_add!(key_ll),
terminfo_add!(key_mark), terminfo_add!(key_message), terminfo_add!(key_move),