Less program pipes code through <b>code2color</b> program if terminal supports ANSI sequences. But code2color is not customizable and looks ugly on terminal with light background (gray). So I guess it is a good idea to make USE flag which disable code2color. Or maybe make some flag in LESS environment variable which disables code2color filter. Reproducible: Always Steps to Reproduce: 1. 2. 3.
color is only displayed if you use -R which implies your terminal should support color just fine i'll add support for checking LESSCOLOR env var
oh, and the color can be configured via one of these: /etc/code2html.config ~/.code2html.config file pointed to by $CODE2HTML_CONFIG envvar
adding -R to LESS env bad solution (all manual pages will be displayed incorrectly in this case). Thank you for suggesting me /etc/code2html.config, I didn't noticed it. Seems that arbitrary perl code expected. I'm looking for the best way to disable coloring, when I found I'll post here.
Found: setting /etc/code2html.config to: %LANGUAGE = () will disable coloring. I'm sorry for bothering you in vain.
manpages show up just fine in my terminals, and i always use -R
added LESSCOLOR and LESSCOLORIZER variables set LESSCOLOR to 0 to turn off color and LESSCOLORIZER to the binar you want to use to colorize the code