Class TerminalLineSettings
java.lang.Object
jline.internal.TerminalLineSettings
Provides access to terminal line settings via stty.
- Since:
- 2.0
- Author:
- Marc Prud'hommeaux, Dale Kemp, Jason Dillon, Jean-Baptiste Onofré, Guillaume Nodet
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetProperty(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) voidrestore()voidvoidvoidstatic String
-
Field Details
-
JLINE_STTY
- See Also:
-
DEFAULT_STTY
- See Also:
-
JLINE_SH
- See Also:
-
DEFAULT_SH
- See Also:
-
DEFAULT_TTY
- See Also:
-
-
Constructor Details
-
TerminalLineSettings
Deprecated.- Throws:
IOExceptionInterruptedException
-
TerminalLineSettings
Deprecated.- 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
-
getPropertyAsString
-
getProperty
-
waitAndCapture
- Throws:
IOExceptionInterruptedException
-