wofr06 / lesspipe

lesspipe - display more with less
GNU General Public License v2.0
484 stars 51 forks source link

`--theme` required for `bat`’s colours to be used #155

Closed nisbet-hubbard closed 1 month ago

nisbet-hubbard commented 1 month ago

Currently, just exporting LESSCOLORIZER='bat' doesn’t cause bat’s default theme to be used. Only LESSCOLORIZER='bat --theme=default' would produce the same colours as bat does out of box.

wofr06 commented 1 month ago

This was done on purpose to have output with reasonable contrast for both dark and light background. The default theme looks good on dark background, but (at least for me) the default theme with light background does not produce readable output (some chars are printed white on white). The chosen ansi theme is a compromise.