Yes for quick ansi formatting while still being able to use fmt print functions as normal. I print out alot of debug info of variables for sanity checks, but because all of it will be deleted when I’m satisfied, I don’t wish to spend much time on organizing and sorting the output too much. So I like to be able to bang out some colors to differentiate the output. Colors for things I’m changing, no colors for things I expect to stay the same, but still wish to monitor or reference.
ansi-printing-library-collection-afmt
So I’ll do something like:
afmt.printfln("%#w", "-f[red]", myvar1)
afmt.printfln("%#w", "-f[yellow]", myvar2)
afmt.printfln("%#w", "-f[green]", myvar3)
// or
_ = is_ok ? afmt.printfln("%#w", "-f[green]", myvar1) : afmt.printfln("%#w", "-f[red]", myvar1)
// ...etc