From 72cd0eac29f9967f2d6c5f1968b0dec6e9d737f5 Mon Sep 17 00:00:00 2001 From: nicm Date: Thu, 28 Nov 2024 08:49:14 +0000 Subject: [PATCH] Add extended keys flag for foot terminal. --- tty-features.c | 4 ++++ tty-keys.c | 2 ++ 2 files changed, 6 insertions(+) diff --git a/tty-features.c b/tty-features.c index 110bc1f8..18922956 100644 --- a/tty-features.c +++ b/tty-features.c @@ -478,6 +478,10 @@ tty_default_features(int *feat, const char *name, u_int version) .features = TTY_FEATURES_BASE_MODERN_XTERM ",cstyle,extkeys,margins,usstyle,sync,osc7,hyperlinks" }, + { .name = "foot", + .features = TTY_FEATURES_BASE_MODERN_XTERM + ",cstyle,extkeys" + }, { .name = "XTerm", /* * xterm also supports DECSLRM and DECFRA, but they can be diff --git a/tty-keys.c b/tty-keys.c index 8d703fc0..a0c4c4ae 100644 --- a/tty-keys.c +++ b/tty-keys.c @@ -1592,6 +1592,8 @@ tty_keys_extended_device_attributes(struct tty *tty, const char *buf, tty_default_features(features, "XTerm", 0); else if (strncmp(tmp, "mintty ", 7) == 0) tty_default_features(features, "mintty", 0); + else if (strncmp(tmp, "foot(", 5) == 0) + tty_default_features(features, "foot", 0); log_debug("%s: received extended DA %.*s", c->name, (int)*size, buf); free(c->term_type);