public class TerminalEmulatorDeviceConfiguration extends Object
Modifier and Type | Class | Description |
---|---|---|
static class |
TerminalEmulatorDeviceConfiguration.CursorStyle |
Different cursor styles supported by SwingTerminal
|
Constructor | 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.
|
TerminalEmulatorDeviceConfiguration(int lineBufferScrollbackSize,
int blinkLengthInMilliSeconds,
TerminalEmulatorDeviceConfiguration.CursorStyle cursorStyle,
TextColor cursorColor,
boolean cursorBlinking,
boolean clipboardAvailable) |
Creates a new terminal device configuration object with all configurable values specified.
|
Modifier and Type | Method | 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 |
isClipboardAvailable() |
|
boolean |
isCursorBlinking() |
Should the text cursor be blinking
|
TerminalEmulatorDeviceConfiguration |
withBlinkLengthInMilliSeconds(int blinkLengthInMilliSeconds) |
Copies the current configuration.
|
TerminalEmulatorDeviceConfiguration |
withClipboardAvailable(boolean clipboardAvailable) |
Copies the current configuration.
|
TerminalEmulatorDeviceConfiguration |
withCursorBlinking(boolean cursorBlinking) |
Copies the current configuration.
|
TerminalEmulatorDeviceConfiguration |
withCursorColor(TextColor cursorColor) |
Copies the current configuration.
|
TerminalEmulatorDeviceConfiguration |
withCursorStyle(TerminalEmulatorDeviceConfiguration.CursorStyle cursorStyle) |
Copies the current configuration.
|
TerminalEmulatorDeviceConfiguration |
withLineBufferScrollbackSize(int lineBufferScrollbackSize) |
Copies the current configuration.
|
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 TerminalEmulatorDeviceConfiguration(int lineBufferScrollbackSize, int blinkLengthInMilliSeconds, TerminalEmulatorDeviceConfiguration.CursorStyle cursorStyle, TextColor cursorColor, boolean cursorBlinking, boolean clipboardAvailable)
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?clipboardAvailable
- Should the terminal support pasting text from the clipboard?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 boolean isClipboardAvailable()
public TerminalEmulatorDeviceConfiguration withBlinkLengthInMilliSeconds(int blinkLengthInMilliSeconds)
blinkLengthInMilliSeconds
- How many milliseconds does a 'blink' lastpublic TerminalEmulatorDeviceConfiguration withLineBufferScrollbackSize(int lineBufferScrollbackSize)
lineBufferScrollbackSize
- How many lines of scrollback buffer should the terminal save?public TerminalEmulatorDeviceConfiguration withCursorStyle(TerminalEmulatorDeviceConfiguration.CursorStyle cursorStyle)
cursorStyle
- Style of the terminal text cursorpublic TerminalEmulatorDeviceConfiguration withCursorColor(TextColor cursorColor)
cursorColor
- Color of the terminal text cursorpublic TerminalEmulatorDeviceConfiguration withCursorBlinking(boolean cursorBlinking)
cursorBlinking
- Should the terminal text cursor blink?public TerminalEmulatorDeviceConfiguration withClipboardAvailable(boolean clipboardAvailable)
clipboardAvailable
- Should the terminal support pasting text from the clipboard?Copyright © 2020. All rights reserved.