TerminalColor

public enum TerminalColor : String

The set of colors used when logging with colorized lines.

  • Log text in white.

    Declaration

    Swift

    case white = "\u{001B}[0;37m" // white
  • red

    Log text in red, used for error messages.

    Declaration

    Swift

    case red = "\u{001B}[0;31m" // red
  • Log text in yellow, used for warning messages.

    Declaration

    Swift

    case yellow = "\u{001B}[0;33m" // yellow
  • Log text in the terminal’s default foreground color.

    Declaration

    Swift

    case foreground = "\u{001B}[0;39m" // default foreground color
  • Log text in the terminal’s default background color.

    Declaration

    Swift

    case background = "\u{001B}[0;49m" // default background color