summaryrefslogtreecommitdiffstats
path: root/opt.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2021-06-13 16:10:59 -0400
committerTavian Barnes <tavianator@tavianator.com>2021-06-13 16:16:31 -0400
commitf0bae86b684e57065da737ed5c8744f3757e9d38 (patch)
treed2941ab2e3eb124c2ce3b4cd581a03287737351b /opt.c
parentdb67752672877ea0f5360699cb34ad31065ef39e (diff)
downloadbfs-f0bae86b684e57065da737ed5c8744f3757e9d38.tar.xz
parse: More -help pager improvements
If $PAGER is unset, we now try less if it exists, then fall back to more. Colors are only used if less is the used pager, since more on non-coreutils platforms doesn't always handle colors. Finally, less's configuration is given on the command line, which works better if the user has $LESS already set. Fixes https://github.com/tavianator/bfs/issues/76.
Diffstat (limited to 'opt.c')
0 files changed, 0 insertions, 0 deletions