public class TerminalEmulatorDeviceConfiguration extends Object
Modifier and Type | Class and Description |
---|---|
static class |
TerminalEmulatorDeviceConfiguration.CursorStyle
Different cursor styles supported by SwingTerminal
|
Constructor and Description |
---|
TerminalEmulatorDeviceConfiguration()
Creates a new terminal device configuration object with all the defaults set
|
TerminalEmulatorDeviceConfiguration(int lineBufferScrollbackSize,
int blinkLengthInMilliSeconds,
TerminalEmulatorDeviceConfiguration.CursorStyle cursorStyle,
TextColor cursorColor,
boolean cursorBlinking)
Creates a new terminal device configuration object with all configurable values specified.
|
Modifier and Type | Method and Description |
---|---|
int |
getBlinkLengthInMilliSeconds()
Returns the length of a 'blink', which is the interval time a character with the blink SGR enabled with be drawn
with foreground color and background color set to the same.
|
TextColor |
getCursorColor()
What color to draw the text cursor color in
|
TerminalEmulatorDeviceConfiguration.CursorStyle |
getCursorStyle()
Style the text cursor should take
|
static TerminalEmulatorDeviceConfiguration |
getDefault()
This is a static reference to the default terminal device configuration.
|
int |
getLineBufferScrollbackSize()
How many lines of history should be saved so the user can scroll back to them?
|
boolean |
isCursorBlinking()
Should the text cursor be blinking
|
TerminalEmulatorDeviceConfiguration |
withLineBufferScrollbackSize(int lineBufferScrollbackSize)
Returns a copy of this device configuration but with a different size of the scrollback buffer
|
public TerminalEmulatorDeviceConfiguration()
public TerminalEmulatorDeviceConfiguration(int lineBufferScrollbackSize, int blinkLengthInMilliSeconds, TerminalEmulatorDeviceConfiguration.CursorStyle cursorStyle, TextColor cursorColor, boolean cursorBlinking)
lineBufferScrollbackSize
- How many lines of scrollback buffer should the terminal save?blinkLengthInMilliSeconds
- How many milliseconds does a 'blink' lastcursorStyle
- Style of the terminal text cursorcursorColor
- Color of the terminal text cursorcursorBlinking
- Should the terminal text cursor blink?public static TerminalEmulatorDeviceConfiguration getDefault()
public int getBlinkLengthInMilliSeconds()
public int getLineBufferScrollbackSize()
public TerminalEmulatorDeviceConfiguration.CursorStyle getCursorStyle()
TerminalEmulatorDeviceConfiguration.CursorStyle
public TextColor getCursorColor()
public boolean isCursorBlinking()
true
if the text cursor should be blinkingpublic TerminalEmulatorDeviceConfiguration withLineBufferScrollbackSize(int lineBufferScrollbackSize)
lineBufferScrollbackSize
- Size of the scrollback buffer (in number of lines) the copy should haveCopyright © 2016. All rights reserved.