Closed Akiiino closed 3 years ago
Interesting. I never noticed this, since I have a shell function to run kakoune that predates kak-ansi:
man () {
if (( $# == 2 ))
then
kak -e "man $2($1)"
return $?
else
kak -e "man $*"
return $?
fi
}
Anyway, the same thing happens here (surprisingly!). These are not technically ANSI escapes, but really old line printer hacks -- but:
After investigating, on Mac OS, in /etc/man.conf
, groff
is passed -c
which disables color and uses this old format.
This has been implemented in v0.2.4, which I just released. Specifically bolding and underline and bold+underline have been covered, and I suspect that's all there is. It looks good for me, but if you see something amiss, let me know.
Hi! Not sure if this is within the intended scope of the project — I'm not really familiar with the details of formatting text in terminals, but:
I've installed this plugin via plug.kak, and it seems to work well as a pager:
PAGER=kak git log
has colors and looks great.PAGER=kak man man
however — not so much:Without any styling, of course.
I've tried all combinations of ansi-enable/disable/render/clear without any changes. Am I doing something wrong? I'm using macOS with kitty as my terminal, if that's relevant.