* [PATCH v3 1/2] console_codes.4: align spacing aids in escape codes @ 2026-07-08 10:42 Jan Engelhardt 2026-07-08 10:42 ` [PATCH v3 2/2] console_codes.4: document more xterm codes Jan Engelhardt 2026-07-08 11:14 ` [PATCH v3 1/2] console_codes.4: align spacing aids in escape codes Alejandro Colomar 0 siblings, 2 replies; 6+ messages in thread From: Jan Engelhardt @ 2026-07-08 10:42 UTC (permalink / raw) To: alx; +Cc: linux-man The space character is used as a visual aid in the escape code sequences. A few lines had spacing inconsistent with the rest of the document, so align them. Signed-off-by: Jan Engelhardt <jengelh@inai.de> --- man/man4/console_codes.4 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/man/man4/console_codes.4 b/man/man4/console_codes.4 index a742cf36f..e0e88537a 100644 --- a/man/man4/console_codes.4 +++ b/man/man4/console_codes.4 @@ -753,14 +753,14 @@ 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 ] 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 ] 46 ; \f[I]name\f[] ST T{ 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 Set font to \f[I]fn\f[]. .TE .P It recognizes the following with slightly modified meaning -- 2.54.0 ^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH v3 2/2] console_codes.4: document more xterm codes 2026-07-08 10:42 [PATCH v3 1/2] console_codes.4: align spacing aids in escape codes Jan Engelhardt @ 2026-07-08 10:42 ` Jan Engelhardt 2026-07-08 11:17 ` Alejandro Colomar 2026-07-08 11:14 ` [PATCH v3 1/2] console_codes.4: align spacing aids in escape codes Alejandro Colomar 1 sibling, 1 reply; 6+ messages in thread From: Jan Engelhardt @ 2026-07-08 10:42 UTC (permalink / raw) To: alx; +Cc: linux-man Signed-off-by: Jan Engelhardt <jengelh@inai.de> --- man/man4/console_codes.4 | 49 +++++++++++++++++++++++++++++++++++++--- 1 file changed, 46 insertions(+), 3 deletions(-) diff --git a/man/man4/console_codes.4 b/man/man4/console_codes.4 index e0e88537a..a34adc57f 100644 --- a/man/man4/console_codes.4 +++ b/man/man4/console_codes.4 @@ -753,14 +753,57 @@ 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 ; \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 T{ +Set the color for reverse substitution to \f[I]txt\f[]. Because xterm still +reverses fg-bg pairs, the effect is that only the background of a character +cell is colorized this way. +T} +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 reverse video (provided it is not substituted +with 6;3;1) 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 reverse video (provided it is not substituted +with 6;3;1) to \f[I]txt\f[]. +T} ESC ] 46 ; \f[I]name\f[] ST T{ Change log file to .I name (normally disabled by a compile-time option). T} -ESC ] 50 ; \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 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 ^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH v3 2/2] console_codes.4: document more xterm codes 2026-07-08 10:42 ` [PATCH v3 2/2] console_codes.4: document more xterm codes Jan Engelhardt @ 2026-07-08 11:17 ` Alejandro Colomar 2026-07-08 11:58 ` Jan Engelhardt 0 siblings, 1 reply; 6+ messages in thread From: Alejandro Colomar @ 2026-07-08 11:17 UTC (permalink / raw) To: Jan Engelhardt; +Cc: linux-man [-- Attachment #1: Type: text/plain, Size: 3957 bytes --] Hi Jan, On 2026-07-08T12:42:45+0200, Jan Engelhardt wrote: > Signed-off-by: Jan Engelhardt <jengelh@inai.de> > --- > man/man4/console_codes.4 | 49 +++++++++++++++++++++++++++++++++++++--- > 1 file changed, 46 insertions(+), 3 deletions(-) > > diff --git a/man/man4/console_codes.4 b/man/man4/console_codes.4 > index e0e88537a..a34adc57f 100644 > --- a/man/man4/console_codes.4 > +++ b/man/man4/console_codes.4 > @@ -753,14 +753,57 @@ 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 ; \f[I]num\f[] ; \f[I]txt\f[] ST Set color \f[I]num\f[] (0-255) to \f[I]txt\f[]. This seems to reword the description of ESC]4;num;txt, which doesn't seem to match the commit message. Should this go into a separate commit? > +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 T{ > +Set the color for reverse substitution to \f[I]txt\f[]. Because xterm still > +reverses fg-bg pairs, the effect is that only the background of a character > +cell is colorized this way. > +T} > +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 reverse video (provided it is not substituted > +with 6;3;1) 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 reverse video (provided it is not substituted > +with 6;3;1) to \f[I]txt\f[]. > +T} > ESC ] 46 ; \f[I]name\f[] ST T{ > Change log file to > .I name > (normally disabled by a compile-time option). > T} > -ESC ] 50 ; \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} Same here. Cheers, Alex > +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> [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 833 bytes --] ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH v3 2/2] console_codes.4: document more xterm codes 2026-07-08 11:17 ` Alejandro Colomar @ 2026-07-08 11:58 ` Jan Engelhardt 2026-07-08 12:02 ` Alejandro Colomar 0 siblings, 1 reply; 6+ messages in thread From: Jan Engelhardt @ 2026-07-08 11:58 UTC (permalink / raw) To: Alejandro Colomar; +Cc: linux-man On Wednesday 2026-07-08 13:17, Alejandro Colomar wrote: >> 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 ; \f[I]num\f[] ; \f[I]txt\f[] ST Set color \f[I]num\f[] (0-255) to \f[I]txt\f[]. > >This seems to reword the description of ESC]4;num;txt, which doesn't >seem to match the commit message. Should this go into a separate >commit? I had inspected the xterm source code to figure out what codes are available and what they really do. This naturally led to rewording inaccurate descriptions in console_codes. I do not think it is necessary to split this into much more commits. I could might have written console_codes.4: document more xterm codes and fix some behavioral descriptions but that gets a little long for a summary line, wdyt? ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH v3 2/2] console_codes.4: document more xterm codes 2026-07-08 11:58 ` Jan Engelhardt @ 2026-07-08 12:02 ` Alejandro Colomar 0 siblings, 0 replies; 6+ messages in thread From: Alejandro Colomar @ 2026-07-08 12:02 UTC (permalink / raw) To: Jan Engelhardt; +Cc: linux-man [-- Attachment #1: Type: text/plain, Size: 1362 bytes --] Hi Jan, On 2026-07-08T13:58:04+0200, Jan Engelhardt wrote: > > On Wednesday 2026-07-08 13:17, Alejandro Colomar wrote: > > >> 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 ; \f[I]num\f[] ; \f[I]txt\f[] ST Set color \f[I]num\f[] (0-255) to \f[I]txt\f[]. > > > >This seems to reword the description of ESC]4;num;txt, which doesn't > >seem to match the commit message. Should this go into a separate > >commit? > > I had inspected the xterm source code to figure out what codes are available > and what they really do. This naturally led to rewording inaccurate > descriptions in console_codes. I do not think it is necessary to split this > into much more commits. I could might have written > > console_codes.4: document more xterm codes and fix some behavioral descriptions > > but that gets a little long for a summary line, wdyt? I prefer a couple of commits. One commit fixing existing descriptions and another one adding new ones. Two commits should be enough. That makes the diff nicer. Cheers, Alex > > -- <https://www.alejandro-colomar.es> [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 833 bytes --] ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH v3 1/2] console_codes.4: align spacing aids in escape codes 2026-07-08 10:42 [PATCH v3 1/2] console_codes.4: align spacing aids in escape codes Jan Engelhardt 2026-07-08 10:42 ` [PATCH v3 2/2] console_codes.4: document more xterm codes Jan Engelhardt @ 2026-07-08 11:14 ` Alejandro Colomar 1 sibling, 0 replies; 6+ messages in thread From: Alejandro Colomar @ 2026-07-08 11:14 UTC (permalink / raw) To: Jan Engelhardt; +Cc: linux-man [-- Attachment #1: Type: text/plain, Size: 1485 bytes --] Hi Jan, On 2026-07-08T12:42:44+0200, Jan Engelhardt wrote: > The space character is used as a visual aid in the escape code > sequences. A few lines had spacing inconsistent with the rest of the > document, so align them. > > Signed-off-by: Jan Engelhardt <jengelh@inai.de> Thanks! I've applied the patch. Have a lovely day! Alex > --- > man/man4/console_codes.4 | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/man/man4/console_codes.4 b/man/man4/console_codes.4 > index a742cf36f..e0e88537a 100644 > --- a/man/man4/console_codes.4 > +++ b/man/man4/console_codes.4 > @@ -753,14 +753,14 @@ 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 ] 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 ] 46 ; \f[I]name\f[] ST T{ > 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 Set font to \f[I]fn\f[]. > .TE > .P > It recognizes the following with slightly modified meaning > -- > 2.54.0 > -- <https://www.alejandro-colomar.es> [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 833 bytes --] ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2026-07-08 12:02 UTC | newest] Thread overview: 6+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2026-07-08 10:42 [PATCH v3 1/2] console_codes.4: align spacing aids in escape codes Jan Engelhardt 2026-07-08 10:42 ` [PATCH v3 2/2] console_codes.4: document more xterm codes Jan Engelhardt 2026-07-08 11:17 ` Alejandro Colomar 2026-07-08 11:58 ` Jan Engelhardt 2026-07-08 12:02 ` Alejandro Colomar 2026-07-08 11:14 ` [PATCH v3 1/2] console_codes.4: align spacing aids in escape codes Alejandro Colomar
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.