|
||||||||||
| 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(TerminalWindow 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 |
TerminalWindow |
getTerminal()
Get the actual terminal window. |
void |
sendBreak()
This function should be called by the actual terminal window whenever the user wants to send break. |
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, isChaffActive, run, signalTermTypeChanged, typedChar, typedChar |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SSH2TerminalAdapterImpl(TerminalWindow terminal)
terminal - Terminal window to use.| Method Detail |
public TerminalWindow getTerminal()
SSH2TerminalAdapter
getTerminal in interface SSH2TerminalAdapterpublic void attach(SSH2SessionChannel session)
SSH2TerminalAdapter
attach in interface SSH2TerminalAdaptersession - The session to attach to.public void detach()
SSH2TerminalAdapter
detach in interface SSH2TerminalAdapterpublic void startChaff()
SSH2TerminalAdapter
startChaff in interface SSH2TerminalAdapterstartChaff in class TerminalInputChaffpublic void stopChaff()
SSH2TerminalAdapter
stopChaff in interface SSH2TerminalAdapterstopChaff in class TerminalInputChaffpublic void closed(SSH2Channel channel)
SSH2ChannelCloseListener
closed in interface SSH2ChannelCloseListenerchannel - The channel which is closedprotected void sendTypedChar(int c)
sendTypedChar in class TerminalInputChaffc - The typed character to send.protected void sendFakeChar()
sendFakeChar in class TerminalInputChaffpublic void sendBytes(byte[] b)
sendBytes in interface TerminalInputListenerb - Array of bytes to send.
public void signalWindowChanged(int rows,
int cols,
int vpixels,
int hpixels)
signalWindowChanged in interface TerminalInputListenerrows - new number of rowscols - new number of columnsvpixels - new number of vertical pixelshpixels - new number of horizontal pixelspublic void sendBreak()
sendBreak in interface TerminalInputListenersendBreak in class TerminalInputChaff
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||