From bd91015b1398bd986644657618aef38794c5dc1f Mon Sep 17 00:00:00 2001 From: nicm Date: Tue, 21 Apr 2020 10:37:11 +0000 Subject: [PATCH] 256 and RGB features can imply AX (for aixterm colours). --- tty-features.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tty-features.c b/tty-features.c index 3b12b068..ae0869e1 100644 --- a/tty-features.c +++ b/tty-features.c @@ -74,6 +74,7 @@ static struct tty_feature tty_feature_clipboard = { * 256 palette. */ static const char *tty_feature_rgb_capabilities[] = { + "AX", "setrgbf=\\E[38;2;%p1%d;%p2%d;%p3%dm", "setrgbb=\\E[48;2;%p1%d;%p2%d;%p3%dm", "setab=\\E[%?%p1%{8}%<%t4%p1%d%e%p1%{16}%<%t10%p1%{8}%-%d%e48;5;%p1%d%;m", @@ -88,6 +89,7 @@ static struct tty_feature tty_feature_rgb = { /* Terminal supports 256 colours. */ static const char *tty_feature_256_capabilities[] = { + "AX", "setab=\\E[%?%p1%{8}%<%t4%p1%d%e%p1%{16}%<%t10%p1%{8}%-%d%e48;5;%p1%d%;m", "setaf=\\E[%?%p1%{8}%<%t3%p1%d%e%p1%{16}%<%t9%p1%{8}%-%d%e38;5;%p1%d%;m", NULL