From 03149bf7f62e2c92d0e60087c52604d2dd51794f Mon Sep 17 00:00:00 2001 From: nicm Date: Mon, 15 Aug 2022 08:54:03 +0000 Subject: Add a Nobr terminfo capability to tell tmux the terminal does not use bright colours for bold (makes a difference to how tmux applies palette differences). From Damien Tardy-Panis in GitHub issue 3301. --- tty-term.c | 1 + 1 file changed, 1 insertion(+) (limited to 'tty-term.c') diff --git a/tty-term.c b/tty-term.c index a877ef6b..e3167f19 100644 --- a/tty-term.c +++ b/tty-term.c @@ -247,6 +247,7 @@ static const struct tty_term_code_entry tty_term_codes[] = { [TTYC_KUP6] = { TTYCODE_STRING, "kUP6" }, [TTYC_KUP7] = { TTYCODE_STRING, "kUP7" }, [TTYC_MS] = { TTYCODE_STRING, "Ms" }, + [TTYC_NOBR] = { TTYCODE_STRING, "Nobr" }, [TTYC_OL] = { TTYCODE_STRING, "ol" }, [TTYC_OP] = { TTYCODE_STRING, "op" }, [TTYC_RECT] = { TTYCODE_STRING, "Rect" }, -- cgit 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-term.c | 1 + 1 file changed, 1 insertion(+) (limited to 'tty-term.c') diff --git a/tty-term.c b/tty-term.c index e3167f19..23abccf5 100644 --- a/tty-term.c +++ b/tty-term.c @@ -265,6 +265,7 @@ static const struct tty_term_code_entry tty_term_codes[] = { [TTYC_SETRGBF] = { TTYCODE_STRING, "setrgbf" }, [TTYC_SETULC] = { TTYCODE_STRING, "Setulc" }, [TTYC_SE] = { TTYCODE_STRING, "Se" }, + [TTYC_SXL] = { TTYCODE_FLAG, "Sxl" }, [TTYC_SGR0] = { TTYCODE_STRING, "sgr0" }, [TTYC_SITM] = { TTYCODE_STRING, "sitm" }, [TTYC_SMACS] = { TTYCODE_STRING, "smacs" }, -- 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-term.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tty-term.c') diff --git a/tty-term.c b/tty-term.c index 23abccf5..7998f657 100644 --- a/tty-term.c +++ b/tty-term.c @@ -454,6 +454,9 @@ tty_term_apply_overrides(struct tty_term *term) a = options_array_next(a); } + /* Log the SIXEL flag. */ + log_debug("SIXEL flag is %d", !!(term->flags & TERM_SIXEL)); + /* Update the RGB flag if the terminal has RGB colours. */ if (tty_term_has(term, TTYC_SETRGBF) && tty_term_has(term, TTYC_SETRGBB)) -- cgit