Skip to content

Instance Method

consoleStylized(_:)

Wraps a string in the ANSI codes indicated by the ConsoleStyle specification.
func consoleStylized(_ style: ConsoleStyle) -> String

Parameters

style

The ConsoleStyle to use for styling.

Return Value

The string wrapped in ANSI codes.