de.mud.terminal
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ID
The current version id tag.
|
BOLD, bufSize, charArray, charAttributes, COLOR, COLOR_BG, COLOR_BG_SHIFT, COLOR_FG, COLOR_FG_SHIFT, cursorX, cursorY, display, height, INVERT, INVISIBLE, LOW, maxBufSize, NORMAL, screenBase, SCROLL_DOWN, SCROLL_UP, scrollMarker, showcursor, UNDERLINE, update, width, windowBase
KEY_ACTION, KEY_ALT, KEY_CONTROL, KEY_SHIFT
Constructor and Description |
---|
vt320()
Create a default vt320 terminal with 80 columns and 24 lines.
|
vt320(int width,
int height)
Create a new vt320 terminal and intialize it with useful settings.
|
Modifier and Type | Method and Description |
---|---|
void |
beep()
Play the beep sound ...
|
java.lang.String |
getTerminalID()
Get the terminal id used to identify this terminal.
|
void |
keyPressed(int keyCode,
char keyChar,
int modifiers)
main keytyping event handler...
|
void |
keyReleased(java.awt.event.KeyEvent evt) |
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.
|
char |
map_cp850_unicode(char x) |
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.
|
void |
mouseReleased(int x,
int y,
int modifiers)
Terminal is mouse-aware and requires the coordinates and button
of the release.
|
void |
putString(java.lang.String s)
Put string at current cursor position.
|
void |
reset() |
protected void |
sendTelnetCommand(byte cmd) |
void |
setAnswerBack(java.lang.String ab) |
void |
setIBMCharset(boolean ibm)
Enable the usage of the IBM character set used by some BBS's.
|
void |
setKeyCodes(java.util.Properties codes)
Override the standard key codes used by the terminal emulation.
|
void |
setLocalEcho(boolean echo)
Enable or disable the local echo property of the terminal.
|
void |
setScreenSize(int c,
int r,
boolean broadcast)
Change the size of the screen.
|
void |
setTerminalID(java.lang.String terminalID)
Set the terminal id used to identify this terminal.
|
void |
setVMS(boolean vms)
Enable the VMS mode of the terminal to handle some things differently
for VMS hosts.
|
protected void |
setWindowSize(int c,
int r)
Sent the changed window size from the terminal to all listeners.
|
abstract void |
write(byte[] b)
Write an answer back to the remote host.
|
deleteArea, deleteArea, deleteChar, deleteLine, getAttributes, getBottomMargin, getBufferSize, getChar, getColumns, getCursorColumn, getCursorRow, getMaxBufferSize, getRows, getTopMargin, getWindowBase, insertChar, insertLine, insertLine, insertLine, insertLine, markLine, putChar, putChar, putString, putString, redraw, setBottomMargin, setBufferSize, setCursorPosition, setDisplay, setTopMargin, setWindowBase, showCursor
public static final java.lang.String ID
$Id: vt320.java 507 2005-10-25 10:14:52Z marcus $
public vt320(int width, int height)
public vt320()
public abstract void write(byte[] b)
public void beep()
public void putString(java.lang.String s)
s
- the stringprotected void sendTelnetCommand(byte cmd)
protected void setWindowSize(int c, int r)
public void setScreenSize(int c, int r, boolean broadcast)
VDUBuffer
setScreenSize
in class VDUBuffer
c
- of the screenr
- of the screenpublic void mousePressed(int x, int y, int modifiers)
mousePressed
in interface VDUInput
x
- y
- modifiers
- public void mouseReleased(int x, int y, int modifiers)
mouseReleased
in interface VDUInput
x
- y
- modifiers
- public void setLocalEcho(boolean echo)
echo
- true if the terminal should echo locallypublic void setVMS(boolean vms)
vms
- true for vms mode, false for normal modepublic void setIBMCharset(boolean ibm)
ibm
- true to use the ibm character setpublic void setKeyCodes(java.util.Properties codes)
setKeyCodes
in interface VDUInput
codes
- a properties object containing key code definitionspublic void setTerminalID(java.lang.String terminalID)
terminalID
- the id stringpublic void setAnswerBack(java.lang.String ab)
public java.lang.String getTerminalID()
public void keyPressed(int keyCode, char keyChar, int modifiers)
keyPressed
in interface VDUInput
keyCode
- the key codekeyChar
- the character represented by the keymodifiers
- shift/alt/control modifierspublic void keyReleased(java.awt.event.KeyEvent evt)
public void keyTyped(int keyCode, char keyChar, int modifiers)
public char map_cp850_unicode(char x)
public void reset()