Re: [PATCH v5] help: colorize man pages
- From
Jeff King <peff@peff.net>
- Date
- May 22, 2021, 09:56 UTC
- Message-ID
- <YKjVZ28fxqGq7Baq@coredump.intra.peff.net>
- In-Reply-To
- <20210522011718.541986-1-felipe.contreras@gmail.com>
On Fri, May 21, 2021 at 08:17:18PM -0500, Felipe Contreras wrote:
> + /* Add red to bold, blue to underline, and magenta to standout */
> + /* No visual information is lost */
> + setenv("LESS", "Dd+r$Du+b$Ds+m", 0);Unlike the LESS_TERMCAP_* strategy, this completely breaks "git help" on my system:
$ ./git help git
There is no -D option ("less --help" for help) $ man less | grep -A1 '^ *-D'
-Dxcolor or --color=xcolor
[MS-DOS only] Sets the color of the text displayed. x is a singleThis is less 551-2 on Debian unstable.
-Peff