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