Class TerminalColor
java.lang.Object
org.aesh.readline.terminal.formatting.TerminalColor
- Author:
- Ståle W. Pedersen
-
Constructor Summary
ConstructorsConstructorDescriptionTerminalColor(int text, int background) 0x00-0x07: standard colors (as in ESC [ 30..37 m) 0x08-0x0f: high intensity colors (as in ESC [ 90..97 m) 0x10-0xe7: 6*6*6=216 colors: 16 + 36*r + 6*g + b (0≤r,g,b≤5) 0xe8-0xff: grayscale from black to white in 24 stepsTerminalColor(int text, Color background) 0x00-0x07: standard colors (as in ESC [ 30..37 m) 0x08-0x0f: high intensity colors (as in ESC [ 90..97 m) 0x10-0xe7: 6*6*6=216 colors: 16 + 36*r + 6*g + b (0≤r,g,b≤5) 0xe8-0xff: grayscale from black to white in 24 stepsTerminalColor(int text, Color background, Color.Intensity intensity) TerminalColor(Color text, int background) TerminalColor(Color text, int background, Color.Intensity intensity) TerminalColor(Color text, Color background) TerminalColor(Color textColor, Color background, Color.Intensity intensity) -
Method Summary
Modifier and TypeMethodDescriptionbooleanintinthashCode()booleantoString()toString(TerminalColor prev) voidwrite(PrintStream out)
-
Constructor Details
-
TerminalColor
public TerminalColor() -
TerminalColor
-
TerminalColor
-
TerminalColor
public TerminalColor(int text, int background) 0x00-0x07: standard colors (as in ESC [ 30..37 m) 0x08-0x0f: high intensity colors (as in ESC [ 90..97 m) 0x10-0xe7: 6*6*6=216 colors: 16 + 36*r + 6*g + b (0≤r,g,b≤5) 0xe8-0xff: grayscale from black to white in 24 steps- Parameters:
text-background-
-
TerminalColor
0x00-0x07: standard colors (as in ESC [ 30..37 m) 0x08-0x0f: high intensity colors (as in ESC [ 90..97 m) 0x10-0xe7: 6*6*6=216 colors: 16 + 36*r + 6*g + b (0≤r,g,b≤5) 0xe8-0xff: grayscale from black to white in 24 steps- Parameters:
text-background-
-
TerminalColor
-
TerminalColor
-
TerminalColor
-
-
Method Details
-
isFormatted
public boolean isFormatted() -
equals
-
hashCode
-
fullString
-
toString
-
getLength
public int getLength() -
write
-
toString
-