On Sun, Mar 15, 2026 at 08:15:51PM +0800, Xu Che wrote: > Hello, > > I would like to report that the ncurses terminfo entries for Konsole > appear to lag the current Konsole implementation in a few places.
It would be nice if the Konsole developers could write documentation.
As it is, I have to remember to read their source code (and ignore their
comments which are usually inaccurate).
thanks for the reminder :-)
> The issues seem to be these:
>
> 1. `konsole-direct` appears outdated with respect to truecolor syntax.
>
> The current entry follows the `xterm+indirect` direction and
> retains the old comment about Konsole only accepting the nonstandard
> semicolon-separated form.
>
> However, current Konsole accepts the standard colon form for direct
> color sequences. `konsole-direct` now seems more accurately described
> by `xterm+direct`. (See `src/autotests/Vt102EmulationTest.cpp#L261`
> and `src/Vt102Emulation.cpp#L575`.)
>
> 2. Several capabilities appear to be implemented by current Konsole
> but not described in the terminfo entries:
> `E3` for clearing scrollback/history (see `src/Vt102Emulation.cpp#L2023`);
> `Ms` for OSC 52 clipboard/selection write (see
> `src/Vt102Emulation.cpp#L1260`);
> `Cs` / `Cr` for cursor color set/reset (see
> `src/Vt102Emulation.cpp#L1132`);
> `Ss` / `Se` for cursor style (see `src/Vt102Emulation.cpp#L2319`);
> `Smulx` for underline style (see `src/Vt102Emulation.cpp#L2038`);
> `xterm+sm+1003` for any-event mouse reporting (see
> `src/Vt102Emulation.cpp#L2255`).
> and `setal` for underline color (see `src/Vt102Emulation.cpp#L2090`
> and `src/Vt102Emulation.cpp#L575`).
>
> I am sending a suggested patch along with this email.
>
> I am not a developer or maintainer of Konsole, but based on the source
> code, the terminfo description does appear to lag the current
> implementation. I hope you can update the terminfo entries
> accordingly.
>
> Regards,
> Xu Che
> diff --git a/misc/terminfo.src b/misc/terminfo.src
> index a7b8c83c..ba0924a3 100644
> --- a/misc/terminfo.src
> +++ b/misc/terminfo.src
> @@ -5577,10 +5577,9 @@ iterm2-direct|iTerm2 with direct-color indexing,
> mlterm-direct|mlterm with direct-color indexing,
> use=xterm+direct, use=mlterm,
>
> -# Meanwhile, in KDE #107487, the patch submitter and the developer both saw
> -# that xterm's original implementation should have used colons for the
> -# subparameter separators, but chose not to correct this in konsole. As of
> -# late 2017, konsole still accepts only the nonstandard semicolon delimiters.
> +# This variant uses xterm's original semicolon-separated form for
> direct-color
> +# subparameters, retained as a legacy building-block for terminals which
> +# implemented that syntax.
> xterm+indirect|xterm with direct-color indexing (old legacy building-block),
> RGB,
> colors#0x1000000, pairs#0x10000,
> @@ -5591,7 +5590,7 @@ xterm+indirect|xterm with direct-color indexing (old
> legacy building-block),
> %/%{255}%&%d;%p1%{255}%&%d%;m,
> setb@, setf@,
> konsole-direct|konsole with direct-color indexing,
> - use=xterm+indirect, use=konsole,
> + use=xterm+direct, use=konsole,
> st-direct|simpleterm with direct-color indexing,
> use=xterm+indirect, use=st,
> vte-direct|VTE with direct-color indexing,
> @@ -6631,6 +6630,10 @@ kvt|KDE terminal,
> #
> # numeric keypad does neither normal or application mode.
> #
> +# Updated for konsole 26.07.70 (early 2026):
> +# use xterm+direct in konsole-direct
> +# add E3, xterm+sm+1003, xterm+tmux, Smulx and kitty+setal
> +#
> konsole-base|KDE console window (common),
> bce, km@, npc, XT,
> ncv@,
> @@ -6641,12 +6644,14 @@ konsole-base|KDE console window (common),
> rs2=\E7\E[r\E8\E[m\E[?7h\E[?1;3;4;6l\E[4l\E>\E[?1000l\E[?25h,
> sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;%?
> %p5%t;2%;%?%p7%t;8%;m%?%p9%t\016%e\017%;,
> + E3=\E[3J, Se=\E[0 q, Smulx=\E[4:%p1%dm,
> sgr0=\E[0m\017, smam=\E[?7h, rv=\E\\[>1;115;0c,
> xr=\EP>\\|Konsole ([1-9][.0-9])\E\\\\,
> use=ecma+overline, use=ecma+underline,
> use=ecma+standout, use=ansi+rca2, use=ansi+sgrdim,
> - use=ecma+index, use=xterm+focus, use=xterm+sm+1006,
> + use=ecma+index, use=xterm+sm+1003,
> use=ecma+strikeout, use=ecma+italics, use=ecma+color,
> + use=xterm+tmux, use=kitty+setal,
> use=xterm-r6, use=vt220+cvis, use=bracketed+paste,
> use=report+version, use=xterm+pc+edit,
>
--
Thomas E. Dickey <[email protected]>
https://invisible-island.net
signature.asc
Description: PGP signature
