com.mindbright.terminal
public interface TerminalInputListener
TerminalWindow
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
|
void typedChar(char c)
c
- typed charactervoid typedChar(byte[] b)
b
- byte code representation fo the character encoded in
the current encoding.void sendBytes(byte[] b)
b
- array of bytes representing characters to inputvoid sendBytesDirect(byte[] b)
b
- array of bytes representing characters to sendvoid signalWindowChanged(int rows, int cols, int vpixels, int hpixels)
rows
- new number of rowscols
- new number of columnsvpixels
- new number of vertical pixelshpixels
- new number of horizontal pixelsvoid signalTermTypeChanged(java.lang.String newTermType)
newTermType
- new terminal type to emulatevoid sendBreak()