| java.lang.Object com.ericdaugherty.sshwebproxy.SshChannel com.ericdaugherty.sshwebproxy.ShellChannel com.ericdaugherty.sshwebproxy.VT100ShellChannel
VT100ShellChannel | public class VT100ShellChannel extends ShellChannel (Code) | | Extends the default ShellChannel to provide VT100 Terminal
emulation.
author: Eric Daugherty |
Method Summary | |
public int | getCursorColumn() The index of the column the cursor is on, if we are
in cursor mode. | public int | getCursorRow() The index of the row the cursor is on, if we are
in cursor mode. | public String[] | getScreen() Returns a String array of the currently visible
rows. | public static boolean | isControlChar(char character) Determines if the specified character is a control character. | public String | process(char[] inputBuffer, int count) Parses the data read from the server for control characters.
Parameters: inputBuffer - the data read from the server. Parameters: count - the number of bytes in the inputBuffer that are valid. |
VT100ShellChannel | public VT100ShellChannel(SshConnection sshConnection, SessionChannelClient sshChannel) throws SshConnectException(Code) | | Initializes a new VT100ShellChannel. Uses ShellChannel constructor
to setup the channel.
Parameters: sshConnection - the connection to use. Parameters: sshChannel - the SSH API channel. throws: SshConnectException - thrown if there is any error openingthe connection. |
getCursorColumn | public int getCursorColumn()(Code) | | The index of the column the cursor is on, if we are
in cursor mode. Otherwise, return the value of ShellChannel.getCursorColumn().
the column index of the cursor. |
getCursorRow | public int getCursorRow()(Code) | | The index of the row the cursor is on, if we are
in cursor mode. Otherwise, return the value of ShellChannel.getCursorRow().
the row index of the cursor. |
getScreen | public String[] getScreen()(Code) | | Returns a String array of the currently visible
rows. The number of rows returned will always match
the Screen Size.
Array of Strings that represent the current data on the screen. |
isControlChar | public static boolean isControlChar(char character)(Code) | | Determines if the specified character is a control character.
A control character is any character less then 32 or greater than
126 (decimal).
Parameters: character - the character to test true if it is a control character. |
process | public String process(char[] inputBuffer, int count)(Code) | | Parses the data read from the server for control characters.
Parameters: inputBuffer - the data read from the server. Parameters: count - the number of bytes in the inputBuffer that are valid. a string containing only valid characters. |
|
|