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.
16 lines
365 B
Text
16 lines
365 B
Text
.
|
|
.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
|
|
.\}
|