Package jline.internal
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 TypeMethodDescriptionint
getProperty
(String name) Get the value of a stty property, including the management of a cache.protected static int
getProperty
(String name, String stty) getPropertyAsString
(String name) protected static String
getPropertyAsString
(String name, String stty) Parses a stty output (provided by stty -a) and return the value of a given property.static TerminalLineSettings
getSettings
(String device) void
restore()
void
void
void
static 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:
IOException
InterruptedException
-
TerminalLineSettings
Deprecated.- Throws:
IOException
InterruptedException
-
-
Method Details
-
getSettings
public static TerminalLineSettings getSettings(String device) throws IOException, InterruptedException - Throws:
IOException
InterruptedException
-
getTtyDevice
-
getConfig
-
restore
- Throws:
IOException
InterruptedException
-
get
- Throws:
IOException
InterruptedException
-
set
- Throws:
IOException
InterruptedException
-
set
- Throws:
IOException
InterruptedException
-
undef
- Throws:
IOException
InterruptedException
-
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
Parses a stty output (provided by stty -a) and return the value of a given property.
- Parameters:
name
- property name.stty
- string resulting of stty -a execution.- Returns:
- value of the given property.
-
getProperty
-
waitAndCapture
- Throws:
IOException
InterruptedException
-