|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.sshd.common.util.SttySupport
public class SttySupport
Support for stty command on unix
| Constructor Summary | |
|---|---|
SttySupport()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SttySupport()
| Method Detail |
|---|
public static java.util.Map<PtyMode,java.lang.Integer> getUnixPtyModes()
throws java.io.IOException,
java.lang.InterruptedException
java.io.IOException
java.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.IOException
java.lang.InterruptedException
public static java.lang.String stty(java.lang.String args)
throws java.io.IOException,
java.lang.InterruptedException
java.io.IOException
java.lang.InterruptedException
public static java.lang.String exec(java.lang.String cmd)
throws java.io.IOException,
java.lang.InterruptedException
java.io.IOException
java.lang.InterruptedExceptionpublic static void setSttyCommand(java.lang.String cmd)
public static java.lang.String getSttyCommand()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||