LESS='--clear-screen'
makes bat
go wrong
#2288
Unanswered
QuarticCat
asked this question in
Q&A
Replies: 1 comment
-
Solved. It turns out that My configurations are export LESS='--quit-if-one-screen --RAW-CONTROL-CHARS --chop-long-lines --clear-screen'
export BAT_PAGER='less --quit-if-one-screen --RAW-CONTROL-CHARS --no-init -+c'
export MANPAGER='sh -c "col -bx | bat -pl man --theme=Monokai\ Extended"'
export MANROFFOPT='-c' Then when using |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
You can see that bat outputs extra
~
lines.But if I set
$ export BAT_PAGER='less --quit-if-one-screen --RAW-CONTROL-CHARS --no-init -+clear-screen'
I will get
Beta Was this translation helpful? Give feedback.
All reactions