Re: [PATCH v2] console_codes.4: document more xterm codes

Alejandro Colomar <[email protected]> Wed, 24 Jun 2026 13:06:37 +0200
Newsgroups org.kernel.vger.linux-man
Message-ID <aju5-L_vItUNO-i0@devuan>
Hi Jan,

Sorry for the delay.

On 2026-06-19T12:07:11+0200, Jan Engelhardt wrote:
> Signed-off-by: Jan Engelhardt <[email protected]>
> ---
> v2:
> * Removed a copy-paste leftover in the wording of OSC mode 17/19
> 
>  man/man4/console_codes.4 | 48 ++++++++++++++++++++++++++++++++++++----
>  1 file changed, 44 insertions(+), 4 deletions(-)
> 
> diff --git a/man/man4/console_codes.4 b/man/man4/console_codes.4
> index a742cf36f..d92522e27 100644
> --- a/man/man4/console_codes.4
> +++ b/man/man4/console_codes.4
> @@ -753,14 +753,54 @@ Set icon name and window title to
>  T}
>  ESC ] 1 ; \f[I]txt\f[] ST	Set icon name to \f[I]txt\f[].
>  ESC ] 2 ; \f[I]txt\f[] ST	Set window title to \f[I]txt\f[].
> -ESC ] 4 ; \f[I]num\f[]; \f[I]txt\f[] ST	Set ANSI color \f[I]num\f[] to \f[I]txt\f[].
> -ESC ] 10 ; \f[I]txt\f[] ST	Set dynamic text color to \f[I]txt\f[].
> -ESC ] 4 6 ; \f[I]name\f[] ST	T{
> +ESC ] 4 ; \f[I]num\f[] ; \f[I]txt\f[] ST	Set color \f[I]num\f[] (0-255) to \f[I]txt\f[].
[...]
> +ESC ] 46 ; \f[I]name\f[] ST	T{

This patch mixes additions with formatting changes.  Please move the
formatting changes to a separate patch, so that the diff is smaller.


Have a lovely day!
Alex

>  Change log file to
>  .I name
>  (normally disabled by a compile-time option).
>  T}
> -ESC ] 5 0 ; \f[I]fn\f[] ST	Set font to \f[I]fn\f[].
> +ESC ] 50 ; \f[I]fn\f[] ST	T{
> +Set font to \f[I]fn\f[] (normally disabled; cf. the "allowFontOps" resource)
> +T}
> +ESC ] 104 ; \f[I]num\f[] ST	Reset color for mode 4;\f[I]num\f[]
> +ESC ] 105 ; \f[I]num\f[] ST	Reset color for mode 5;\f[I]num\f[]
> +ESC ] 106 ; \f[I]num\f[] ; \f[I]val\f[] ST	T{
> +Exactly equal to 6;\f[I]num\f[];\f[I]val\f[]. (no "reset" logic)
> +T}
> +ESC ] 110 ST	Reset color for mode 10. (The pattern repeats until 119.)
> +ESC ] \f[I]mode\f[] ; ? ST	T{
> +Query the respective property/color/etc. (modes 4,5,10-19,50)
> +T}
>  .TE
>  .P
>  It recognizes the following with slightly modified meaning
> -- 
> 2.54.0
> 

-- 
<https://www.alejandro-colomar.es>
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEES7Jt9u9GbmlWADAi64mZXMKQwqkFAmo7uj0ACgkQ64mZXMKQ
wqlrxA//f2q8QJiBTFqholWKBSqwZ+vjNH2mYZD8GVLlk1Va+ALZvZXR1hAd1btw
prsUhSwqm10NvXIoHmg0ZpUxuLFhvJlEaPwiqiPIS+kt9za6XUOibyOTDCybiM2U
KeCbaTds/bkhF+JnZfF9GXKn/hQ0CcAYyM9UMfLnnGxm8T3Iaeuq9sUDQqbBMkeJ
hJr1gHa0oMJwjzjxAFk9oqgMYLscvnL+C3m11gOGC5QnlEdbHsjFv/yQIY4o3r3y
GjxTseOcc43df9VZQ+bmFiyZ/MatUXQVSjh77SFkKocd+njU1cm9LQo8pudv3tHI
r/sjT/j1h1OrFvhMfo462veDQRj3P3E20p+Z9/qT89QvCLvT+XSngEoMSH/3DNZV
FI39NwrUUdoHrJh0fFvu987BE3U2uS3R0DnIPe9JK73+oEejc+OtT5YHPHfvRY6Z
sTh0pJlET6VkphPm1cLrkf4oOjMCndiRZc+9MEzt3mL04ChJt29SKQgS519hEXxj
WhSlVke5hE/HsT8wnvNVd7n2LE81tOuScp6UXB/9bYT2c8TMf/AWKWrJ0amfRAxt
XYajfyQ4HuawK/YfZulJkCeu4AH3+i/lh5NPx+S3i6pSZGAN603aBXDdwGzcgMkT
rKMSyQqMPBb3WsS84BlrgW0zEZKzx3ZTZw3NFcGRz4oeFTtrCSA=
=SwtO
-----END PGP SIGNATURE-----