diff options
author | Thomas Adam <thomas@xteddy.org> | 2022-06-14 10:01:08 +0100 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2022-06-14 10:01:08 +0100 |
commit | 06869ff22fa9891c9633ce3e3efa77cac758b520 (patch) | |
tree | e9c067e1b8b0cdb7c899e2f3a823b6e17de49e6d /tty-features.c | |
parent | 6d0828b81cd39362869155dbea0143b66efe4e21 (diff) | |
parent | 616bde08ac74d4be0ae06087aa3103df54833f86 (diff) | |
download | rtmux-06869ff22fa9891c9633ce3e3efa77cac758b520.tar.gz rtmux-06869ff22fa9891c9633ce3e3efa77cac758b520.tar.bz2 rtmux-06869ff22fa9891c9633ce3e3efa77cac758b520.zip |
Merge branch 'obsd-master'
Diffstat (limited to 'tty-features.c')
-rw-r--r-- | tty-features.c | 77 |
1 files changed, 76 insertions, 1 deletions
diff --git a/tty-features.c b/tty-features.c index 2848b4d6..477925e3 100644 --- a/tty-features.c +++ b/tty-features.c @@ -250,6 +250,80 @@ static const struct tty_feature tty_feature_rectfill = { TERM_DECFRA }; +/* Use builtin function keys only. */ +static const char *tty_feature_ignorefkeys_capabilities[] = { + "kf0@", + "kf1@", + "kf2@", + "kf3@", + "kf4@", + "kf5@", + "kf6@", + "kf7@", + "kf8@", + "kf9@", + "kf10@", + "kf11@", + "kf12@", + "kf13@", + "kf14@", + "kf15@", + "kf16@", + "kf17@", + "kf18@", + "kf19@", + "kf20@", + "kf21@", + "kf22@", + "kf23@", + "kf24@", + "kf25@", + "kf26@", + "kf27@", + "kf28@", + "kf29@", + "kf30@", + "kf31@", + "kf32@", + "kf33@", + "kf34@", + "kf35@", + "kf36@", + "kf37@", + "kf38@", + "kf39@", + "kf40@", + "kf41@", + "kf42@", + "kf43@", + "kf44@", + "kf45@", + "kf46@", + "kf47@", + "kf48@", + "kf49@", + "kf50@", + "kf51@", + "kf52@", + "kf53@", + "kf54@", + "kf55@", + "kf56@", + "kf57@", + "kf58@", + "kf59@", + "kf60@", + "kf61@", + "kf62@", + "kf63@", + NULL +}; +static const struct tty_feature tty_feature_ignorefkeys = { + "ignorefkeys", + tty_feature_ignorefkeys_capabilities, + 0 +}; + /* Available terminal features. */ static const struct tty_feature *tty_features[] = { &tty_feature_256, @@ -259,6 +333,7 @@ static const struct tty_feature *tty_features[] = { &tty_feature_cstyle, &tty_feature_extkeys, &tty_feature_focus, + &tty_feature_ignorefkeys, &tty_feature_margins, &tty_feature_mouse, &tty_feature_osc7, @@ -372,7 +447,7 @@ tty_default_features(int *feat, const char *name, u_int version) ",ccolour,cstyle,focus,overline,usstyle" }, { .name = "rxvt-unicode", - .features = "256,bpaste,ccolour,cstyle,mouse,title" + .features = "256,bpaste,ccolour,cstyle,mouse,title,ignorefkeys" }, { .name = "iTerm2", .features = TTY_FEATURES_BASE_MODERN_XTERM |