- implement
format fn for Color and FontStyle types
- with custom specifiers:
if specifier is empty then write CSI-sequence
bg & fg specifiers for Color type: treat value as background & foreground respectively
np: don't write CSI prefix for intelligent updates
As result:
debug.print("{fg} FG red {bg} BG green {} default", { .Red, .Green, .Reset });
formatfn forColorandFontStyletypesif specifier is empty then write CSI-sequence
bg&fgspecifiers for Color type: treat value as background & foreground respectivelynp: don't write CSI prefix for intelligent updatesAs result: