Re: [PATCH 3/4] console_codes.4: mention caveats for xterm's ESC ] 50 command

Alejandro Colomar <[email protected]> Fri, 10 Jul 2026 15:55:30 +0200
Newsgroups org.kernel.vger.linux-man
Message-ID <alD15mDndM01rrNu@devuan>
Hi Jan,

On 2026-07-08T21:03:01+0200, Jan Engelhardt wrote:
> 
> On Wednesday 2026-07-08 17:29, Alejandro Colomar wrote:
> >>
> >> -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)
> >
> >Please replace "cf." by English words.
> 
> But I was just following precedent:
> 
> man-pages$ git grep '\be\.g\.'|wc -l
> 481
> $ git grep '\bi\.e\.'|wc -l
> 516
> $ git grep '\bcf\.'|wc -l
> 10
> $ git grep '\bN\.?B\.'|wc -l
> 0

There are still some uses, but we're trying to reduce them (and
especially, not add more).  See man-pages(7):

$ MANWIDTH=72 man man-pages | awk '/Use of e.g.,/,/^$/'
   Use of e.g., i.e., etc., a.k.a., and similar
     In  general,  the  use  of  abbreviations  such as "e.g.", "i.e.",
     "etc.", "cf.", and "a.k.a." should be avoided, in favor  of  suit‐
     able  full  wordings ("for example", "that is", "and so on", "com‐
     pare to", "also known as").

Compare the numbers with:

$ grep -rio for.example man/ | wc -l
585
$ grep -rio that.is man/ | wc -l
808
$ grep -rio compare.to | wc -l
2

> and the Linux kernel source for completeness:
> 
> $ git grep '\be\.g\.'|wc -l
> 9582
> $ git grep '\bi\.e\.'|wc -l
> 7397
> $ git grep '\bN\.?B\.'|wc -l
> 235
> $ git grep '\bcf\.'|wc -l
> 165
> 
> 
> >Also, where is "allowFontOps" documented?
> 
> The console_codes.4 manpage section that is being edited talks
> extensively about *xterm*, so it felt obvious that, if a term was
> unclear, the reader need look no further than into the xterm manpage
> to resolve his quest.

Hmmm, I'd append something like "in xterm(1)".  It's not much text, and
helps know where to search for its documentation.   wdyt?


Have a lovely day!
Alex

> In fact, the xterm manpage even declares what constitutes "dynamic"
> colors (now that I happen to look for that term which tripped me up
> earlier).
> 
> Does that sound reasonable?
> 

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

iQIzBAABCgAdFiEES7Jt9u9GbmlWADAi64mZXMKQwqkFAmpQ+dIACgkQ64mZXMKQ
wql2BA/9FMYn/5RcRkswVk0mpNlDH1hvfGL7UIhRJXsVEkVDPXtJGLCK3QoE3FwT
rsXAArv2c3XdMtiRcfv8FNako+U8VS9RYOu1Y5uHEOpFP302plKAXB5BAz2FowNL
J8tP9atEPLkSRjQb0ZRdMtBEbx6uKINzHkpQtcyZb7S6G7rMs2nyIWavyO4mVii5
ehfKOjoS0re74Lgm02KzLLVRi490ytfGcdTz4ndcaFLu6QmqvIwK2AzVyYLNSPmk
XNtGT9nOTdum2FnaStJEnw756bhDx1NvMtTDhLaPzBbze9n9xIHWDhed5UXebDSk
RAgD4K5/Z9j4cM7SrdEkAWbMzYhPL/ofhffsG4ir9Ce9dIL25lT6ZSOBYTxzM7/g
yvKym/CpJ+4VReY5R7GjYp+Y1wHeb3TIjLV7IRzmnaWjmYOBtVLOWub4UyztIPl7
4RRJciGoOiUZkW2Ns+8OImeKn6bo8a4CiaQG9FGkJ7A31wLFpV60dW4gCzvBZ+xs
6y4PnipDloahf+Lqs4RsXCN3UWsyqGLxDgEFItZl8qc/lR30cMR0mopbW3cqtJ4b
vemGBezz8Di1QP1mbF4a/viXVzVU03FwF97qbjNQTfUhOJC9UFQYlpprDsadFuRU
t6nWpBMXRhxwG/ShagiU4qrSxp4e+bwY5mcAJAuPxXTgUVE57ag=
=2k4M
-----END PGP SIGNATURE-----