|
||||||||||
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 String |
exec(String cmd)
Execute the specified command and return the output (both stdout and stderr). |
static 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 String |
getTtyProps()
|
static Map<PtyMode,Integer> |
getUnixPtyModes()
|
static Map<PtyMode,Integer> |
parsePtyModes(String stty)
|
static void |
setSttyCommand(String cmd)
The command to use to set the terminal options. |
static String |
stty(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 Map<PtyMode,Integer> getUnixPtyModes() throws IOException, InterruptedException
IOException
InterruptedException
public static Map<PtyMode,Integer> parsePtyModes(String stty)
public static int getTerminalWidth()
public static int getTerminalHeight()
public static String getTtyProps() throws IOException, InterruptedException
IOException
InterruptedException
public static String stty(String args) throws IOException, InterruptedException
IOException
InterruptedException
public static String exec(String cmd) throws IOException, InterruptedException
IOException
InterruptedException
public static void setSttyCommand(String cmd)
public static String getSttyCommand()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |