From: Alejandro Colomar <alx@kernel.org>
To: Jan Engelhardt <jengelh@inai.de>
Cc: linux-man@vger.kernel.org
Subject: Re: [PATCH 4/4] console_codes.4: document more xterm codes
Date: Wed, 8 Jul 2026 17:30:17 +0200 [thread overview]
Message-ID: <ak5s1Fdwmy0E0M3i@devuan> (raw)
In-Reply-To: <20260708121458.46465-4-jengelh@inai.de>
[-- Attachment #1: Type: text/plain, Size: 4107 bytes --]
Hi Jan,
On 2026-07-08T14:14:58+0200, Jan Engelhardt wrote:
> Signed-off-by: Jan Engelhardt <jengelh@inai.de>
> ---
> man/man4/console_codes.4 | 41 ++++++++++++++++++++++++++++++++++++++++
> 1 file changed, 41 insertions(+)
>
> diff --git a/man/man4/console_codes.4 b/man/man4/console_codes.4
> index e309293ca..a34adc57f 100644
> --- a/man/man4/console_codes.4
> +++ b/man/man4/console_codes.4
> @@ -754,7 +754,36 @@ 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 T{
> +Set the color for reverse substitution to \f[I]txt\f[]. Because xterm still
Please use semantic newlines. See man-pages(7):
$ MANWIDTH=72 man man-pages | awk '/Use semantic newlines/,/^$/'
Use semantic newlines
In the source of a manual page, new sentences should be started on
new lines, long sentences should be split into lines at clause
breaks (commas, semicolons, colons, and so on), and long clauses
should be split at phrase boundaries. This convention, sometimes
known as "semantic newlines", makes it easier to see the effect of
patches, which often operate at the level of individual sentences,
clauses, or phrases.
Cheers,
Alex
> +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
> @@ -763,6 +792,18 @@ T}
> 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
>
>
--
<https://www.alejandro-colomar.es>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2026-07-08 15:30 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-08 12:14 [PATCH 1/4] console_codes.4: rephrase description for xterm's ESC ] 4 command Jan Engelhardt
2026-07-08 12:14 ` [PATCH 2/4] console_codes.4: rephrase description for xterm's ESC ] 10 command Jan Engelhardt
2026-07-08 12:14 ` [PATCH 3/4] console_codes.4: mention caveats for xterm's ESC ] 50 command Jan Engelhardt
2026-07-08 15:29 ` Alejandro Colomar
2026-07-08 19:03 ` Jan Engelhardt
2026-07-10 13:55 ` Alejandro Colomar
2026-07-08 12:14 ` [PATCH 4/4] console_codes.4: document more xterm codes Jan Engelhardt
2026-07-08 15:30 ` Alejandro Colomar [this message]
2026-07-08 15:17 ` [PATCH 1/4] console_codes.4: rephrase description for xterm's ESC ] 4 command Alejandro Colomar
2026-07-08 15:24 ` Alejandro Colomar
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ak5s1Fdwmy0E0M3i@devuan \
--to=alx@kernel.org \
--cc=jengelh@inai.de \
--cc=linux-man@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.