Uses of Class
org.aesh.terminal.formatting.TerminalColor
Packages that use TerminalColor
-
Uses of TerminalColor in org.aesh.terminal.formatting
Methods in org.aesh.terminal.formatting that return TerminalColorModifier and TypeMethodDescriptionTerminalColor.forCapability(TerminalColorCapability capability) Create the best representation of this color for the given terminal capability.static TerminalColorTerminalColor.forError(TerminalColorCapability capability) Create a TerminalColor appropriate for error messages based on terminal theme.static TerminalColorTerminalColor.forHighlight(TerminalColorCapability capability) Create a TerminalColor appropriate for highlighted/emphasized text.static TerminalColorTerminalColor.forInfo(TerminalColorCapability capability) Create a TerminalColor appropriate for info messages based on terminal theme.static TerminalColorTerminalColor.forMessage(TerminalColorCapability capability) Create a TerminalColor appropriate for highlighted messages in log output.static TerminalColorTerminalColor.forMuted(TerminalColorCapability capability) Create a TerminalColor appropriate for muted/secondary text.static TerminalColorTerminalColor.forSuccess(TerminalColorCapability capability) Create a TerminalColor appropriate for success messages based on terminal theme.static TerminalColorTerminalColor.forTimestamp(TerminalColorCapability capability) Create a TerminalColor appropriate for timestamps in log output.static TerminalColorTerminalColor.forWarning(TerminalColorCapability capability) Create a TerminalColor appropriate for warning messages based on terminal theme.static TerminalColorCreate a TerminalColor with true color foreground from hex string.static TerminalColorCreate a TerminalColor with true color foreground and background from hex strings.static TerminalColorTerminalColor.fromHSL(float h, float s, float l) Create a TerminalColor with true color foreground from HSL values.static TerminalColorTerminalColor.fromHSL(float textH, float textS, float textL, float bgH, float bgS, float bgL) Create a TerminalColor with true color foreground and background from HSL values.static TerminalColorTerminalColor.fromRGB(int r, int g, int b) Create a TerminalColor with true color (24-bit RGB) foreground.static TerminalColorTerminalColor.fromRGB(int textR, int textG, int textB, int bgR, int bgG, int bgB) Create a TerminalColor with true color (24-bit RGB) foreground and background.TerminalColor.toColor16()Convert RGB color to nearest 16-color.TerminalColor.toColor256()Convert RGB color to nearest 256-color palette index.Methods in org.aesh.terminal.formatting with parameters of type TerminalColorModifier and TypeMethodDescriptionTerminalColor.toString(TerminalColor prev) Get the ANSI codes for this color relative to a previous color.Constructors in org.aesh.terminal.formatting with parameters of type TerminalColorModifierConstructorDescriptionTerminalCharacter(char c, TerminalColor color) Create a terminal character with the specified color.TerminalCharacter(char c, TerminalColor color, CharacterType type) Create a terminal character with the specified color and character type.TerminalCharacter(char c, TerminalColor color, TerminalTextStyle style) Create a terminal character with the specified color and style.TerminalString(String chars, String hyperlinkUrl, TerminalColor color, TerminalTextStyle style) Create a terminal string with a hyperlink URL, color and style.TerminalString(String chars, TerminalColor color) Create a terminal string with the specified color.TerminalString(String chars, TerminalColor color, TerminalTextStyle style) Create a terminal string with the specified color and style.