printfln,errorfln: call fprintfln instead of fprintf
Update for current Hare
Implement NO_COLOR detection
This package provides ANSI Escape Codes support for Hare. This was inspired by fatih/color for Go.
This works well with Hare's fmt
and log
modules. There is also logfmt
which ties in nicely with log
if you wanted colored structured logging.
The recommended name for this package is "hare-clrfmt". Look for this, or something similar, in your local package manager. This is the preferred way to install this package.
make install
git subtree -P vendor/hare-clrfmt/ add https://git.sr.ht/~blainsmith/hare-clrfmt main