public class TerminalEmulatorColorConfiguration extends Object
Modifier and Type | Method | Description |
---|---|---|
static TerminalEmulatorColorConfiguration |
getDefault() |
This is the default settings that is used when you create a new SwingTerminal without specifying any color
configuration.
|
static TerminalEmulatorColorConfiguration |
newInstance(TerminalEmulatorPalette colorPalette) |
Creates a new color configuration based on a particular palette and with using brighter colors on bold text.
|
Color |
toAWTColor(TextColor color,
boolean isForeground,
boolean inBoldContext) |
Deprecated.
This adds a runtime dependency to the java.desktop module which isn't declared in the module
descriptor of lanterna. If you want to call this method, make sure to add it to your module.
|
public static TerminalEmulatorColorConfiguration getDefault()
public static TerminalEmulatorColorConfiguration newInstance(TerminalEmulatorPalette colorPalette)
colorPalette
- Palette to use for this color configuration@Deprecated public Color toAWTColor(TextColor color, boolean isForeground, boolean inBoldContext)
color
- What text color to convertisForeground
- Is the color intended to be used as foreground colorinBoldContext
- Is the color intended to be used for on a character this is boldCopyright © 2020. All rights reserved.