| Modifier and Type | Field and Description |
|---|---|
| public static final String | |
| public static final int | |
| public static final int | |
| public static final String | |
| private static final AtomicReference | |
| private static final AtomicReference | |
| private static final AtomicLong |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static int | |
| public static String | |
| private static String | |
| private static int | |
| private static int | |
| public static String | |
| public static int | Returns: The terminal heightReturns the value of "stty size" height param Note this method caches the value from the first time it is called in order to increase speed, which means that changing to size of the terminal will not be reflected in the console. |
| public static int | |
| public static int | Returns: The terminal widthReturns the value of "stty size" width param Note this method caches the value from the first time it is called in order to increase speed, which means that changing to size of the terminal will not be reflected in the console. |
| public static String | |
| public static Map | |
| public static Map | |
| public static void | setSttyCommand(String
The command to use to set the terminal options. Defaults to cmd)DEFAULT_SSHD_STTY_COMMAND, or the
value of the SSHD_STTY_COMMAND_PROP system property if not set via this method
|
| public static String |
| DEFAULT_SSHD_STTY_COMMAND | back to summary |
|---|---|
| public static final String DEFAULT_SSHD_STTY_COMMAND | |
| DEFAULT_TERMINAL_HEIGHT | back to summary |
|---|---|
| public static final int DEFAULT_TERMINAL_HEIGHT | |
| DEFAULT_TERMINAL_WIDTH | back to summary |
|---|---|
| public static final int DEFAULT_TERMINAL_WIDTH | |
| SSHD_STTY_COMMAND_PROP | back to summary |
|---|---|
| public static final String SSHD_STTY_COMMAND_PROP | |
| STTY_COMMAND_HOLDER | back to summary |
|---|---|
| private static final AtomicReference<String> STTY_COMMAND_HOLDER | |
| TTY_PROPS_HOLDER | back to summary |
|---|---|
| private static final AtomicReference<String> TTY_PROPS_HOLDER | |
| TTY_PROPS_LAST_FETCHED_HOLDER | back to summary |
|---|---|
| private static final AtomicLong TTY_PROPS_LAST_FETCHED_HOLDER | |
| SttySupport | back to summary |
|---|---|
| private SttySupport() | |
| copyStream | back to summary |
|---|---|
| private static int copyStream(InputStream in, OutputStream bout) throws IOException | |
| exec | back to summary |
|---|---|
| public static String exec(final String cmd) throws IOException, InterruptedException Execute the specified command and return the output (both stdout and stderr).
| |
| exec | back to summary |
|---|---|
| private static String exec(String... cmd) throws IOException, InterruptedException Execute the specified command and return the output (both stdout and stderr).
| |
| findChar | back to summary |
|---|---|
| private static int findChar(String stty, String name) | |
| findFlag | back to summary |
|---|---|
| private static int findFlag(String stty, String name) | |
| getSttyCommand | back to summary |
|---|---|
public static String getSttyCommand()
| |
| getTerminalHeight | back to summary |
|---|---|
| public static int getTerminalHeight() Returns the value of "stty size" height param Note this method caches the value from the first time it is called in order to increase speed, which means that changing to size of the terminal will not be reflected in the console.
| |
| getTerminalProperty | back to summary |
|---|---|
| public static int getTerminalProperty(String prop) throws IOException, InterruptedException | |
| getTerminalWidth | back to summary |
|---|---|
| public static int getTerminalWidth() Returns the value of "stty size" width param Note this method caches the value from the first time it is called in order to increase speed, which means that changing to size of the terminal will not be reflected in the console.
| |
| getTtyProps | back to summary |
|---|---|
| public static String getTtyProps() throws IOException, InterruptedException | |
| getUnixPtyModes | back to summary |
|---|---|
| public static Map | |
| parsePtyModes | back to summary |
|---|---|
| public static Map | |
| setSttyCommand | back to summary |
|---|---|
public static void setSttyCommand(String cmd)
| |
| stty | back to summary |
|---|---|
| public static String stty(String args) throws IOException, InterruptedException Execute the stty command with the specified arguments against the current active terminal.
| |