ConsoleColorExtensions extension

Provide additional methods

on

Properties

hasColor → bool

Available on ConsoleColor, provided by the ConsoleColorExtensions extension

Check if there is any color.
no setter

Methods

withBgMsg(String msg, ConsoleColor bgColor) → String

Available on ConsoleColor, provided by the ConsoleColorExtensions extension

Use bgColor as the background color and the current color as foreground color.
withFgMsg(String msg, ConsoleColor fgColor) → String

Available on ConsoleColor, provided by the ConsoleColorExtensions extension

Use fgColor as the foreground color and the current color as background color.