Package software.amazon.smithy.cli
Class Style.SingularCode
- java.lang.Object
-
- software.amazon.smithy.cli.Style.SingularCode
-
-
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 Constructor Description SingularCode(int code)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
pushCodes(java.util.function.IntConsumer codeConsumer)
Pushes one or more ANSI color codes to the consumer.
-
-
-
Method Detail
-
pushCodes
public void pushCodes(java.util.function.IntConsumer codeConsumer)
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).
-
-