public class STTY extends Object
| Modifier and Type | Method and Description |
|---|---|
TerminalSize |
getTerminalSize()
Get the terminal size.
|
protected static TerminalSize |
getTerminalSize(Runtime runtime) |
boolean |
isInteractive() |
STTYModeSwitcher |
setSTTYMode(STTYMode mode)
Set the current STTY mode, and return the closable switcher to turn back.
|
String |
toString() |
public STTY()
public STTY(Runtime runtime)
public STTYModeSwitcher setSTTYMode(STTYMode mode)
mode - The STTY mode to set.public TerminalSize getTerminalSize()
UncheckedIOException - If getting the terminal size failed.public boolean isInteractive()
protected static TerminalSize getTerminalSize(Runtime runtime) throws IOException
IOExceptionCopyright © 2016. All rights reserved.