|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.mindbright.terminal.TerminalInputChaff
com.mindbright.ssh2.SSH2TerminalAdapterImpl
Adapter class which interfaces between terminal windows and ssh2.
Constructor Summary | |
SSH2TerminalAdapterImpl(TerminalWin terminal)
Constructor. |
Method Summary | |
void |
attach(SSH2SessionChannel session)
Attach the terminal to a session |
void |
closed(SSH2Channel channel)
Called when the channel is closed. |
void |
detach()
Detach from the session |
Terminal |
getTerminal()
Get the actual terminal window. |
void |
sendBytes(byte[] b)
Send a number of bytes. |
protected void |
sendFakeChar()
Send a fake character. |
protected void |
sendTypedChar(int c)
Send an actually typed character. |
void |
signalWindowChanged(int rows,
int cols,
int vpixels,
int hpixels)
This function should be called by the actual terminal window whenever it is resized. |
void |
startChaff()
Starts sending chaff. |
void |
stopChaff()
Stop sending chaff. |
Methods inherited from class com.mindbright.terminal.TerminalInputChaff |
dispenseChaff, run, typedChar |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SSH2TerminalAdapterImpl(TerminalWin terminal)
terminal
- Terminal window to use.Method Detail |
public Terminal getTerminal()
SSH2TerminalAdapter
getTerminal
in interface SSH2TerminalAdapter
public void attach(SSH2SessionChannel session)
SSH2TerminalAdapter
attach
in interface SSH2TerminalAdapter
session
- The session to attach to.public void detach()
SSH2TerminalAdapter
detach
in interface SSH2TerminalAdapter
public void startChaff()
SSH2TerminalAdapter
startChaff
in interface SSH2TerminalAdapter
startChaff
in class TerminalInputChaff
public void stopChaff()
SSH2TerminalAdapter
stopChaff
in interface SSH2TerminalAdapter
stopChaff
in class TerminalInputChaff
public void closed(SSH2Channel channel)
SSH2ChannelCloseListener
closed
in interface SSH2ChannelCloseListener
channel
- The channel which is closedprotected void sendTypedChar(int c)
sendTypedChar
in class TerminalInputChaff
c
- The typed character to send.protected void sendFakeChar()
sendFakeChar
in class TerminalInputChaff
public void sendBytes(byte[] b)
sendBytes
in interface TerminalInputListener
b
- Array of bytes to send.public void signalWindowChanged(int rows, int cols, int vpixels, int hpixels)
signalWindowChanged
in interface TerminalInputListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |