TextColor

public enum TextColor : String

Enum for text color ANSII codes

  • The default color

    Declaration

    Swift

    case `default` = "\u{1B}[0m"
  • Black color

    Declaration

    Swift

    case black = "\u{1B}[30m"
  • red

    Red color

    Declaration

    Swift

    case red = "\u{1B}[31m"
  • Green color

    Declaration

    Swift

    case green = "\u{1B}[32m"
  • Yellow color

    Declaration

    Swift

    case yellow = "\u{1B}[33m"
  • Blue color

    Declaration

    Swift

    case blue = "\u{1B}[34m"
  • Magenta color

    Declaration

    Swift

    case magenta = "\u{1B}[35m"
  • Cyan color

    Declaration

    Swift

    case cyan = "\u{1B}[36m"
  • White color

    Declaration

    Swift

    case white = "\u{1B}[37m"
  • Bright black color

    Declaration

    Swift

    case brightBlack = "\u{1B}[30;1m"
  • Bright red color

    Declaration

    Swift

    case brightRed = "\u{1B}[31;1m"
  • Bright green color

    Declaration

    Swift

    case brightGreen = "\u{1B}[32;1m"
  • Bright yellow color

    Declaration

    Swift

    case brightYellow = "\u{1B}[33;1m"
  • Bright blue color

    Declaration

    Swift

    case brightBlue = "\u{1B}[34;1m"
  • Bright magenta color

    Declaration

    Swift

    case brightMagenta = "\u{1B}[35;1m"
  • Bright cyan color

    Declaration

    Swift

    case brightCyan = "\u{1B}[36;1m"
  • Bright white color

    Declaration

    Swift

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