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