[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Man page customization after 1.23?
From: |
G. Branden Robinson |
Subject: |
Re: Man page customization after 1.23? |
Date: |
Sat, 8 Jul 2023 18:21:28 -0500 |
Hi Nate,
At 2023-07-08T18:02:34-0500, Nate Bargmann wrote:
> * On 2023 08 Jul 17:22 -0500, Ronan Pigott via wrote:
> > Ok. For now I've decided to export MANROFFOPT="-c" along with MANPAGER.
Shouldn't this be MANROFFOPT="-P -c"?
$ groff --help | head -n 1
usage: groff [-abcCeEgGijklNpRsStUVXzZ] [-d ctext] [-d string=text]
[-D fallback-encoding] [-f font-family] [-F font-directory]
[-I inclusion-directory] [-K input-encoding] [-L spooler-argument]
[-m macro-package] [-M macro-directory] [-n page-number]
[-o page-list] [-P postprocessor-argument] [-r cnumeric-expression]
[-r register=numeric-expression] [-T output-device]
[-w warning-category] [-W warning-category] [file ...]
(I reflowed by that hand; groff does not run groff to format its own
usage message.)
If I do _this_, by contrast:
$ MANROFFOPT="-P -i" man man
I get man(1)'s own man page using real italics in my xterm.
> Thanks for that tip, Ronan. I just updated my Arch VM and Groff 1.23
> was installed and bold text was shown as emboldened bright white but
> Italics were simply underlined. Exporting that option results in my man
> pages being shown as before with Groff <= 1.22.4 n and with an
> additional side effect that the page name on the first and last lines on
> the screen might be shown with my chosen color for Italics and
> Italicized (not all pages show in that manner).
Just keep in mind that other output drivers don't recognize '-c' (or
'-i' for that matter), so if you ever use man(1)'s '-T' option to format
for a non-terminal device, you will get complaints.
And if you say you never do that, I will cry, but will understand.
Regards,
Branden
signature.asc
Description: PGP signature