Package software.amazon.smithy.cli
Class Style.SingularCode
java.lang.Object
software.amazon.smithy.cli.Style.SingularCode
- All Implemented Interfaces:
Style
- Enclosing interface:
- Style
A simple implementation of
Style
that pushes a single code.-
Nested Class Summary
Nested classes/interfaces inherited from interface software.amazon.smithy.cli.Style
Style.SingularCode
-
Field Summary
Fields inherited from interface software.amazon.smithy.cli.Style
BG_BLACK, BG_BLUE, BG_BRIGHT_BLACK, BG_BRIGHT_BLUE, BG_BRIGHT_CYAN, BG_BRIGHT_GREEN, BG_BRIGHT_MAGENTA, BG_BRIGHT_RED, BG_BRIGHT_WHITE, BG_BRIGHT_YELLOW, BG_CYAN, BG_GREEN, BG_MAGENTA, BG_RED, BG_WHITE, BG_YELLOW, BLACK, BLUE, BOLD, BRIGHT_BLACK, BRIGHT_BLUE, BRIGHT_CYAN, BRIGHT_GREEN, BRIGHT_MAGENTA, BRIGHT_RED, BRIGHT_WHITE, BRIGHT_YELLOW, CYAN, FAINT, GREEN, ITALIC, MAGENTA, RED, UNDERLINE, WHITE, YELLOW
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
pushCodes
(IntConsumer codeConsumer) Pushes one or more ANSI color codes to the consumer.
-
Constructor Details
-
SingularCode
public SingularCode(int code)
-
-
Method Details
-
pushCodes
Description copied from interface:Style
Pushes one or more ANSI color codes to the consumer.Most implementations will push a single code, but multiple codes are needed to do things like use 8-bit colors (e.g., 38+5+206 to make pink foreground text).
-