Request: when outputting xterm256/truecolor, empty input should yield empty output
3.54
$ touch blank.py
$ highlight -O truecolor blank.py|cat -v
^[[38;2;156;220;254m^[[m
^[[m%
$ highlight -O xterm256 blank.py|cat -v
^[[38;5;153m^[[m
^[[m%
$
When calling highlight
from other scripts and functions, it would be helpful for any blank input files to yield a blank output, rather than a visible blank line and invisible and pointless ansi codes.
FWIW, bat
acts that way:
$ touch blank.py
$ bat blank.py|cat -v
$