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 |
JLINE_SH |
static java.lang.String |
JLINE_STTY |
| Constructor and Description |
|---|
TerminalLineSettings() |
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
checkNotNull(T reference) |
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)
Parses a stty output (provided by stty -a) and return the value of a given property.
|
void |
restore() |
void |
set(java.lang.String args) |
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 TerminalLineSettings()
throws java.io.IOException,
java.lang.InterruptedException
java.io.IOExceptionjava.lang.InterruptedExceptionpublic 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 int getProperty(java.lang.String name)
Get the value of a stty property, including the management of a cache.
name - the stty property.protected static int getProperty(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.public static <T> T checkNotNull(T reference)
Copyright © 2018. All Rights Reserved.