CLIFoundation Documentation Beta

Enumeration Terminal.​Text​Color

public enum TextColor: String 

Enum for text color ANSII codes

Terminal.TextColor Terminal.TextColor String String Terminal.TextColor->String

Member Of

Terminal

A container struct for text styling in a terminal

Conforms To

String

Enumeration Cases

`default`

case `default` = "\u{001B}[0m"

The default color

black

case black = "\u{001B}[30m"

Black color

red

case red = "\u{001B}[31m"

Red color

green

case green = "\u{001B}[32m"

Green color

yellow

case yellow = "\u{001B}[33m"

Yellow color

blue

case blue = "\u{001B}[34m"

Blue color

magenta

case magenta = "\u{001B}[35m"

Magenta color

cyan

case cyan = "\u{001B}[36m"

Cyan color

white

case white = "\u{001B}[37m"

White color

bright​Black

case brightBlack = "\u{001B}[30;1m"

Bright black color

bright​Red

case brightRed = "\u{001B}[31;1m"

Bright red color

bright​Green

case brightGreen = "\u{001B}[32;1m"

Bright green color

bright​Yellow

case brightYellow = "\u{001B}[33;1m"

Bright yellow color

bright​Blue

case brightBlue = "\u{001B}[34;1m"

Bright blue color

bright​Magenta

case brightMagenta = "\u{001B}[35;1m"

Bright magenta color

bright​Cyan

case brightCyan = "\u{001B}[36;1m"

Bright cyan color

bright​White

case brightWhite = "\u{001B}[37;1m"

Bright white color