FS#79053 - [groff] TERMCAP not followed correctly in man pages
Attached to Project:
Arch Linux
Opened by lilydjwg (lilydjwg) - Tuesday, 11 July 2023, 07:27 GMT
Last edited by Tobias Powalowski (tpowa) - Tuesday, 11 July 2023, 14:44 GMT
Opened by lilydjwg (lilydjwg) - Tuesday, 11 July 2023, 07:27 GMT
Last edited by Tobias Powalowski (tpowa) - Tuesday, 11 July 2023, 14:44 GMT
|
Details
Description:
LESS_TERMCAP variables are not correctly followed as of groff 1.23.0-1. Downgrading to groff 1.22.4-10 fixes it. Steps to reproduce: export LESS_TERMCAP_mb=$'\x1b[91m' export LESS_TERMCAP_md=$'\x1b[38;5;74m' export LESS_TERMCAP_me=$'\x1b[0m' export LESS_TERMCAP_se=$'\x1b[0m' export LESS_TERMCAP_so=$'\x1b[7m' export LESS_TERMCAP_ue=$'\x1b[0m' export LESS_TERMCAP_us=$'\x1b[04;38;5;146m' man ls |
This task depends upon
Closed by Tobias Powalowski (tpowa)
Tuesday, 11 July 2023, 14:44 GMT
Reason for closing: Fixed
Additional comments about closing: 1.23.0-2
Tuesday, 11 July 2023, 14:44 GMT
Reason for closing: Fixed
Additional comments about closing: 1.23.0-2
A fix is `export GROFF_NO_SGR=1` or `export MANROFFOPT="-c"` - credits to [4]
[1] https://savannah.gnu.org/bugs/?61561
[2] https://git.savannah.gnu.org/cgit/groff.git/commit/?id=dec7367f785e1482dc79aaaaa83436248cea790c
[3] https://gitlab.archlinux.org/archlinux/packaging/packages/groff/-/blob/1.23.0-1/site.tmac#L14
[4] https://stackoverflow.com/questions/30119588/colorize-man-pages-with-less-pager-not-working-in-cygwin-mintty
I believe so. Let's see what the package maintainer thinks.