public class SttySupport
extends java.lang.Object
| Constructor and Description |
|---|
SttySupport() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
exec(java.lang.String cmd)
Execute the specified command and return the output
(both stdout and stderr).
|
static java.lang.String |
getSttyCommand()
The command to use to set the terminal options.
|
static int |
getTerminalHeight()
Returns the value of "stty size" height param.
|
static int |
getTerminalWidth()
Returns the value of "stty size" width param.
|
static java.lang.String |
getTtyProps() |
static java.util.Map<PtyMode,java.lang.Integer> |
getUnixPtyModes() |
static java.util.Map<PtyMode,java.lang.Integer> |
parsePtyModes(java.lang.String stty) |
static void |
setSttyCommand(java.lang.String cmd)
The command to use to set the terminal options.
|
static java.lang.String |
stty(java.lang.String args)
Execute the stty command with the specified arguments
against the current active terminal.
|
public static java.util.Map<PtyMode,java.lang.Integer> getUnixPtyModes() throws java.io.IOException, java.lang.InterruptedException
java.io.IOExceptionjava.lang.InterruptedExceptionpublic static java.util.Map<PtyMode,java.lang.Integer> parsePtyModes(java.lang.String stty)
public static int getTerminalWidth()
public static int getTerminalHeight()
public static java.lang.String getTtyProps()
throws java.io.IOException,
java.lang.InterruptedException
java.io.IOExceptionjava.lang.InterruptedExceptionpublic static java.lang.String stty(java.lang.String args)
throws java.io.IOException,
java.lang.InterruptedException
java.io.IOExceptionjava.lang.InterruptedExceptionpublic static java.lang.String exec(java.lang.String cmd)
throws java.io.IOException,
java.lang.InterruptedException
java.io.IOExceptionjava.lang.InterruptedExceptionpublic static void setSttyCommand(java.lang.String cmd)
public static java.lang.String getSttyCommand()
Copyright © 2008-2014 The Apache Software Foundation. All Rights Reserved.