public final class TerminalLineSettings extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_SH |
static String |
DEFAULT_STTY |
static String |
DEFAULT_TTY |
static String |
JLINE_SH |
static String |
JLINE_STTY |
| Constructor and Description |
|---|
TerminalLineSettings()
Deprecated.
|
TerminalLineSettings(String ttyDevice)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
String |
get(String args) |
String |
getConfig() |
int |
getProperty(String name)
Get the value of a stty property, including the management of a cache.
|
protected static int |
getProperty(String name,
String stty) |
String |
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) |
String |
getTtyDevice() |
void |
restore() |
void |
set(String... args) |
void |
set(String args) |
void |
undef(String name) |
static String |
waitAndCapture(Process p) |
public static final String JLINE_STTY
public static final String DEFAULT_STTY
public static final String JLINE_SH
public static final String DEFAULT_SH
public static final String DEFAULT_TTY
@Deprecated public TerminalLineSettings() throws IOException, InterruptedException
IOExceptionInterruptedException@Deprecated public TerminalLineSettings(String ttyDevice) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic static TerminalLineSettings getSettings(String device) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic String getTtyDevice()
public String getConfig()
public void restore()
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionpublic String get(String args) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic void set(String args) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic void set(String... args) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic void undef(String name) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic int getProperty(String name)
Get the value of a stty property, including the management of a cache.
name - the stty property.protected static String getPropertyAsString(String name, String stty)
Parses a stty output (provided by stty -a) and return the value of a given property.
name - property name.stty - string resulting of stty -a execution.public static String waitAndCapture(Process p) throws IOException, InterruptedException
IOExceptionInterruptedExceptionCopyright © 2017. All Rights Reserved.