|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.mindbright.terminal.TerminalInputAdapter
public class TerminalInputAdapter
An abstract adapter class for receiving terminal input events. The methods in this class are empty. This class exists as convenience for creating listener objects.
Constructor Summary | |
---|---|
TerminalInputAdapter()
|
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TerminalInputAdapter()
Method Detail |
---|
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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |