Instance Method
consoleStylized(color:background:isBold:)
Wraps a string in the ANSI codes indicated by the style specification.
func consoleStylized(color: ConsoleColor? = nil, background: ConsoleColor? = nil, isBold: Bool = false) -> String
Parameters
colorThe foreground
ConsoleColorto use.backgroundThe background
ConsoleColorto use.isBoldIf
true, the text will be bold.
Return Value
The string wrapped in ANSI codes.