From fe475bd856ff1f98bf8a4cd9b6aedd5da81a7e3c Mon Sep 17 00:00:00 2001 From: nicm Date: Fri, 11 Nov 2022 08:37:55 +0000 Subject: Parse primary device attributes as well as secondary and add a SIXEL flag (not used yet), from Anindya Mukherjee. --- tty-features.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'tty-features.c') diff --git a/tty-features.c b/tty-features.c index 261cb2b8..b1268827 100644 --- a/tty-features.c +++ b/tty-features.c @@ -335,6 +335,17 @@ static const struct tty_feature tty_feature_ignorefkeys = { 0 }; +/* Terminal has sixel capability. */ +static const char *const tty_feature_sixel_capabilities[] = { + "Sxl", + NULL +}; +static const struct tty_feature tty_feature_sixel = { + "sixel", + tty_feature_sixel_capabilities, + 0 +}; + /* Available terminal features. */ static const struct tty_feature *const tty_features[] = { &tty_feature_256, @@ -352,6 +363,7 @@ static const struct tty_feature *const tty_features[] = { &tty_feature_overline, &tty_feature_rectfill, &tty_feature_rgb, + &tty_feature_sixel, &tty_feature_strikethrough, &tty_feature_sync, &tty_feature_title, -- cgit From 20da16737715a183a019f1072735614615b5fd1c Mon Sep 17 00:00:00 2001 From: nicm Date: Fri, 11 Nov 2022 08:44:11 +0000 Subject: Tweak previous to set and log the feature instead of just setting the flag. --- tty-features.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tty-features.c') diff --git a/tty-features.c b/tty-features.c index b1268827..3f4fdbfd 100644 --- a/tty-features.c +++ b/tty-features.c @@ -343,7 +343,7 @@ static const char *const tty_feature_sixel_capabilities[] = { static const struct tty_feature tty_feature_sixel = { "sixel", tty_feature_sixel_capabilities, - 0 + TERM_SIXEL }; /* Available terminal features. */ -- cgit