Interface Style

All Known Implementing Classes:
Style.Constant, Style.Multi

public interface Style
Colors and styles for use with AnsiColorFormatter or CliPrinter.

ANSI codes returned by this interface should not include the opening \033[, the final ;m when opening styles, or the closing . These escapes are added automatically when multiple styles are applied.

  • Field Details

    • BOLD

      static final Style BOLD
    • FAINT

      static final Style FAINT
    • ITALIC

      static final Style ITALIC
    • UNDERLINE

      static final Style UNDERLINE
    • BLACK

      static final Style BLACK
    • RED

      static final Style RED
    • GREEN

      static final Style GREEN
    • YELLOW

      static final Style YELLOW
    • BLUE

      static final Style BLUE
    • MAGENTA

      static final Style MAGENTA
    • CYAN

      static final Style CYAN
    • WHITE

      static final Style WHITE
    • BRIGHT_BLACK

      static final Style BRIGHT_BLACK
    • BRIGHT_RED

      static final Style BRIGHT_RED
    • BRIGHT_GREEN

      static final Style BRIGHT_GREEN
    • BRIGHT_YELLOW

      static final Style BRIGHT_YELLOW
    • BRIGHT_BLUE

      static final Style BRIGHT_BLUE
    • BRIGHT_MAGENTA

      static final Style BRIGHT_MAGENTA
    • BRIGHT_CYAN

      static final Style BRIGHT_CYAN
    • BRIGHT_WHITE

      static final Style BRIGHT_WHITE
    • BG_BLACK

      static final Style BG_BLACK
    • BG_RED

      static final Style BG_RED
    • BG_GREEN

      static final Style BG_GREEN
    • BG_YELLOW

      static final Style BG_YELLOW
    • BG_BLUE

      static final Style BG_BLUE
    • BG_MAGENTA

      static final Style BG_MAGENTA
    • BG_CYAN

      static final Style BG_CYAN
    • BG_WHITE

      static final Style BG_WHITE
    • BG_BRIGHT_BLACK

      static final Style BG_BRIGHT_BLACK
    • BG_BRIGHT_RED

      static final Style BG_BRIGHT_RED
    • BG_BRIGHT_GREEN

      static final Style BG_BRIGHT_GREEN
    • BG_BRIGHT_YELLOW

      static final Style BG_BRIGHT_YELLOW
    • BG_BRIGHT_BLUE

      static final Style BG_BRIGHT_BLUE
    • BG_BRIGHT_MAGENTA

      static final Style BG_BRIGHT_MAGENTA
    • BG_BRIGHT_CYAN

      static final Style BG_BRIGHT_CYAN
    • BG_BRIGHT_WHITE

      static final Style BG_BRIGHT_WHITE
  • Method Details

    • getAnsiColorCode

      String getAnsiColorCode()
    • of

      static Style of(Style... styles)