mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-29 00:53:57 +00:00
111b5eb637
This enables groff to correctly respond to the LESS_TERMCAP_* environment variables, allowing colorized man pages. Patch is taken from Arch Linux; see https://bugs.archlinux.org/task/33760.
17 lines
365 B
Plaintext
17 lines
365 B
Plaintext
.
|
|
.if n \{\
|
|
. \" Character translations for non-keyboard
|
|
. \" characters - to make them searchable
|
|
. if '\*[.T]'utf8' \{\
|
|
. char \- \N'45'
|
|
. char - \N'45'
|
|
. char ' \N'39'
|
|
. char \' \N'39'
|
|
. \}
|
|
.
|
|
. \" Shut off SGR by default (groff colors)
|
|
. \" Require GROFF_SGR envvar defined to turn it on
|
|
. if '\V[GROFF_SGR]'' \
|
|
. output x X tty: sgr 0
|
|
.\}
|