public class SttySupport extends Object
Constructor and Description |
---|
SttySupport() |
Modifier and Type | Method and Description |
---|---|
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.
|
public static Map<PtyMode,Integer> getUnixPtyModes() throws IOException, InterruptedException
IOException
InterruptedException
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()
Copyright © 2008–2018 The Apache Software Foundation. All rights reserved.