Class TerminalLineSettings
java.lang.Object
jline.internal.TerminalLineSettings
Provides access to terminal line settings via stty.
- Since:
- 2.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Stringprivate longstatic final Stringstatic final Stringstatic final Stringprivate Stringstatic final Stringstatic final Stringprivate static final Objectprivate static final Methodprivate static final Map<String, TerminalLineSettings> private Stringprivate Stringprivate static final booleanprivate Stringprivate static final Stringprivate boolean -
Constructor Summary
ConstructorsModifierConstructorDescriptionDeprecated.TerminalLineSettings(String ttyDevice) Deprecated.privateTerminalLineSettings(String ttyDevice, boolean unused) -
Method Summary
Modifier and TypeMethodDescriptionprivate static voidprivate Stringprivate booleanfetchConfig(String name) intgetProperty(String name) Get the value of a stty property, including the management of a cache.protected static intgetProperty(String name, String stty) getPropertyAsString(String name) protected static StringgetPropertyAsString(String name, String stty) Parses a stty output (provided by stty -a) and return the value of a given property.static TerminalLineSettingsgetSettings(String device) private static ProcessBuilderprivate static intparseControlChar(String str) voidrestore()voidvoidprivate Stringvoidstatic String
-
Field Details
-
JLINE_STTY
- See Also:
-
DEFAULT_STTY
- See Also:
-
JLINE_SH
- See Also:
-
DEFAULT_SH
- See Also:
-
UNDEFINED
-
DEFAULT_TTY
- See Also:
-
SUPPORTS_REDIRECT
private static final boolean SUPPORTS_REDIRECT -
REDIRECT_INHERIT
-
REDIRECT_INPUT_METHOD
-
SETTINGS
-
sttyCommand
-
shCommand
-
ttyDevice
-
config
-
initialConfig
-
configLastFetched
private long configLastFetched -
useRedirect
private boolean useRedirect
-
-
Constructor Details
-
TerminalLineSettings
Deprecated.- Throws:
IOExceptionInterruptedException
-
TerminalLineSettings
Deprecated.- Throws:
IOExceptionInterruptedException
-
TerminalLineSettings
private TerminalLineSettings(String ttyDevice, boolean unused) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
-
Method Details
-
getSettings
public static TerminalLineSettings getSettings(String device) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
getTtyDevice
-
getConfig
-
restore
- Throws:
IOExceptionInterruptedException
-
get
- Throws:
IOExceptionInterruptedException
-
set
- Throws:
IOExceptionInterruptedException
-
set
- Throws:
IOExceptionInterruptedException
-
undef
- Throws:
IOExceptionInterruptedException
-
getProperty
Get the value of a stty property, including the management of a cache.
- Parameters:
name- the stty property.- Returns:
- the stty property value.
-
getPropertyAsString
-
fetchConfig
-
getPropertyAsString
-
getProperty
-
parseControlChar
-
stty
- Throws:
IOExceptionInterruptedException
-
exec
- Throws:
IOExceptionInterruptedException
-
inheritInput
- Throws:
Exception
-
waitAndCapture
- Throws:
IOExceptionInterruptedException
-
close
-