Print text to a console with ansi coloring.
Print a string, but add an ANSI color sequence.
text (str) – A text to send to print.
color (str) – An ansi color to decorate text with.
reset (bool) – Clear decoration at the end of text.
Example code:
import miscset miscset.sh.print_colored("Hello, world!", miscset.sh.AnsiColor.cyan)
Result:
[0;36mHello, world![0m
miscset.sh.AnsiColor
miscset.sh.run