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

Alejandro Colomar <[email protected]> Sat, 18 Jul 2026 14:23:59 +0200
Newsgroups org.kernel.vger.linux-man
Message-ID <altwR-YEEe8xITFt@devuan>
Hi Jan,

On 2026-07-11T00:10:35+0200, Jan Engelhardt wrote:
> Signed-off-by: Jan Engelhardt <[email protected]>

Would you mind rebasing this patch?  It doesn't apply cleanly.


Cheers,
Alex

> ---
>  man/man4/console_codes.4 | 35 +++++++++++++++++++++++++++++++++++
>  1 file changed, 35 insertions(+)
> 
> diff --git a/man/man4/console_codes.4 b/man/man4/console_codes.4
> index 534510a4b..526d743a3 100644
> --- a/man/man4/console_codes.4
> +++ b/man/man4/console_codes.4
> @@ -754,7 +754,30 @@ 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 color \f[I]num\f[] (0-255) to \f[I]txt\f[].
> +ESC ] 5 ; 0 ; \f[I]txt\f[] ST	Set the color for bold substitution to \f[I]txt\f[].
> +ESC ] 5 ; 1 ; \f[I]txt\f[] ST	Set the color for underline substitution to \f[I]txt\f[].
> +ESC ] 5 ; 2 ; \f[I]txt\f[] ST	Set the color for blinking substitution to \f[I]txt\f[].
> +ESC ] 5 ; 3 ; \f[I]txt\f[] ST	Set the color for reverse substitution to \f[I]txt\f[].
> +ESC ] 5 ; 4 ; \f[I]txt\f[] ST	Set the color for italic substitution to \f[I]txt\f[].
> +ESC ] 6 ; 0 ; \f[I]val\f[] ST	Toggle bold rendition: 0=bold, 1=substitute by color.
> +ESC ] 6 ; 1 ; \f[I]val\f[] ST	Toggle underscore rendition: 0=underscore, 1=color.
> +ESC ] 6 ; 2 ; \f[I]val\f[] ST	Toggle blinking rendition: 0=blinking, 1=color.
> +ESC ] 6 ; 3 ; \f[I]val\f[] ST	Toggle reverse rendition: 0=reverse, 1=color.
> +ESC ] 6 ; 4 ; \f[I]val\f[] ST	Toggle italic rendition: 0=italic, 1=color.
>  ESC ] 10 ; \f[I]txt\f[] ST	Set the foreground text color to \f[I]txt\f[].
> +ESC ] 11 ; \f[I]txt\f[] ST	Set the background color to \f[I]txt\f[].
> +ESC ] 12 ; \f[I]txt\f[] ST	Set the text cursor color to \f[I]txt\f[].
> +ESC ] 13 ; \f[I]txt\f[] ST	Set the mouse cursor foreground color to \f[I]txt\f[].
> +ESC ] 14 ; \f[I]txt\f[] ST	Set the mouse cursor background color to \f[I]txt\f[].
> +ESC ] 15 ; \f[I]txt\f[] ST	Set the Tektronix foreground color to \f[I]txt\f[].
> +ESC ] 16 ; \f[I]txt\f[] ST	Set the Tektronix background color to \f[I]txt\f[].
> +ESC ] 17 ; \f[I]txt\f[] ST	T{
> +Set the background text color for highlighted (selected) text to \f[I]txt\f[].
> +T}
> +ESC ] 18 ; \f[I]txt\f[] ST	Set the Tektronix cursor color to \f[I]txt\f[].
> +ESC ] 19 ; \f[I]txt\f[] ST	T{
> +Set the foreground text color for highlighted (selected) text to \f[I]txt\f[].
> +T}
>  ESC ] 46 ; \f[I]name\f[] ST	T{
>  Change log file to
>  .I name
> @@ -764,6 +787,18 @@ ESC ] 50 ; \f[I]fn\f[] ST	T{
>  Set font to \f[I]fn\f[] (the escape code is normally disabled;
>  consult the xterm manpage for the "allowFontOps" setting)
>  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	T{
> +Reset color for mode 10. (Codes 111-119 map to resetting modes 11-19,
> +respectively.)
> +T}
> +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-----

iQIzBAABCgAdFiEES7Jt9u9GbmlWADAi64mZXMKQwqkFAmpbcF4ACgkQ64mZXMKQ
wqk2Hw/9F9lIfOSsz3awoWN6xsS4/UydEsYZDbKEJqDqERNQg9S4fhxRSAKww6Jh
Zjj5n3WNkdGRiazL8+9vRztP+A1Jht0vg384UGY0rVcTX0MfP9Y6q8JjOfZzif8J
TSPJxphS0E/xMNE4UtjplSlQh4nmKGsJstdsZSTx2fZqTEl/HxnrW9vBb8qaZMma
LZFsyAqas4QmUsJTHA3z2F9+MgJNt+mizvYmN6JA4wAwvsk5/fHrBIVg2NoS35Km
szIwC8cSjSZZZ1UMEGr+/W2+kZTx/2TGh8Iwz3w/5UkNJ07kqMRbsfLJ8IWPuwa5
ORGL42Eh7aH/epXglc0xI0o1u+i4SRwBVs3vJqQcLoRQkPbSOK9wDHFUCNZ7DNAn
2BFsI6xMKbZLrq070qoDwkVOk/2MkJIR0vdWiYOv2JGFu8NGWoFlGSlZSXiYcHfz
eyu1FF6LZL+e7Wu843a6u8wo0aaiwBYn9t1zbfUEjeC08TaFbOl8r1WBeTBJ5qNm
H3cuW+KYNpK130eTqPF5IlhwWktEcHbzENOsnQpm+6NoCm96YFL2OAuSjQPVFowk
Ixo3zUciqZUtQd6s2o+EKAOw84pkUwFeGvY3M78LrmwskgC8DjnXaq+Nu7S+VoUp
feOXPvgu8OfuDe8MV7bFrlFtYjrFKshDSgEVmjn8HCP6LwqbVLs=
=jvMx
-----END PGP SIGNATURE-----