Open 64 opened 5 months ago
If the color config is set to "auto" (the default), I suppose we could check if the pager is set to less
without -R
and disable color if it is. Or we can always set LESS=FRX
when calling the pager. #2928 attempted that but was abandoned in favor of adding a builtin pager to use by default. Maybe we should revive that PR.
Just tinkering with jj locally for the first time. I set
PAGER=less
in my environment. This seems to override the default pager 'less -FRX' and hence ANSI escape sequences are not rendered properly (since -FRX is not passed).Steps to Reproduce the Problem
Run
PAGER=less jj --help
with a clean configurationExpected Behavior
Help is rendered either in plain text or with escape sequences processed properly
Actual Behavior
ANSI escape sequences are shown:
Note that
env -u PAGER jj --help
works as intended.Specifications