beep
public void beep()
Play the beep sound ...
getTerminalID
public String getTerminalID()
Get the terminal id used to identify this terminal.
keyPressed
public void keyPressed(int keyCode,
char keyChar,
int modifiers)
main keytyping event handler...
- keyPressed in interface VDUInput
keyReleased
public void keyReleased(KeyEvent evt)
keyTyped
public void keyTyped(int keyCode,
char keyChar,
int modifiers)
Handle key Typed events for the terminal, this will get
all normal key types, but no shift/alt/control/numlock.
- keyTyped in interface VDUInput
map_cp850_unicode
public char map_cp850_unicode(char x)
mousePressed
public void mousePressed(int x,
int y,
int modifiers)
Terminal is mouse-aware and requires (x,y) coordinates of
on the terminal (character coordinates) and the button clicked.
- mousePressed in interface VDUInput
mouseReleased
public void mouseReleased(int x,
int y,
int modifiers)
Terminal is mouse-aware and requires the coordinates and button
of the release.
- mouseReleased in interface VDUInput
putString
public void putString(String s)
Put string at current cursor position. Moves cursor
according to the String. Does NOT wrap.
sendTelnetCommand
protected void sendTelnetCommand(byte cmd)
setAnswerBack
public void setAnswerBack(String ab)
setIBMCharset
public void setIBMCharset(boolean ibm)
Enable the usage of the IBM character set used by some BBS's. Special
graphical character are available in this mode.
ibm
- true to use the ibm character set
setKeyCodes
public void setKeyCodes(Properties codes)
Override the standard key codes used by the terminal emulation.
- setKeyCodes in interface VDUInput
codes
- a properties object containing key code definitions
setLocalEcho
public void setLocalEcho(boolean echo)
Enable or disable the local echo property of the terminal.
echo
- true if the terminal should echo locally
setScreenSize
public void setScreenSize(int c,
int r,
boolean broadcast)
Change the size of the screen. This will include adjustment of the
scrollback buffer.
- setScreenSize in interface VDUBuffer
setTerminalID
public void setTerminalID(String terminalID)
Set the terminal id used to identify this terminal.
terminalID
- the id string
setVMS
public void setVMS(boolean vms)
Enable the VMS mode of the terminal to handle some things differently
for VMS hosts.
vms
- true for vms mode, false for normal mode
setWindowSize
protected void setWindowSize(int c,
int r)
Sent the changed window size from the terminal to all listeners.
write
public abstract void write(byte[] b)
Write an answer back to the remote host. This is needed to be able to
send terminal answers requests like status and type information.
b
- the array of bytes to be sent