com.mindbright.terminal
public class TerminalInputAdapter extends java.lang.Object implements TerminalInputListener
| Constructor and Description |
|---|
TerminalInputAdapter() |
| Modifier and Type | Method and Description |
|---|---|
void |
sendBreak()
Called when the user sends a break to the terminal
|
void |
sendBytes(byte[] b)
May be called when the user pastes data.
|
void |
sendBytesDirect(byte[] b)
Send some bytes directly to the host.
|
void |
signalTermTypeChanged(java.lang.String newTermType)
Called when the terminal type has changed.
|
void |
signalWindowChanged(int rows,
int cols,
int vpixels,
int hpixels)
Called when the size of the terminal window has changed.
|
void |
typedChar(byte[] b)
Called when the user types a character
|
void |
typedChar(char c)
Called when the user types a character
|
public void typedChar(char c)
TerminalInputListenertypedChar in interface TerminalInputListenerc - typed characterpublic void typedChar(byte[] b)
TerminalInputListenertypedChar in interface TerminalInputListenerb - byte code representation fo the character encoded in
the current encoding.public void sendBytes(byte[] b)
TerminalInputListenersendBytes in interface TerminalInputListenerb - array of bytes representing characters to inputpublic void sendBytesDirect(byte[] b)
TerminalInputListenersendBytesDirect in interface TerminalInputListenerb - array of bytes representing characters to sendpublic void signalWindowChanged(int rows,
int cols,
int vpixels,
int hpixels)
TerminalInputListenersignalWindowChanged in interface TerminalInputListenerrows - new number of rowscols - new number of columnsvpixels - new number of vertical pixelshpixels - new number of horizontal pixelspublic void signalTermTypeChanged(java.lang.String newTermType)
TerminalInputListenersignalTermTypeChanged in interface TerminalInputListenernewTermType - new terminal type to emulatepublic void sendBreak()
TerminalInputListenersendBreak in interface TerminalInputListener