Class display.vt320
All Packages Class Hierarchy This Package Previous Next Index
Class display.vt320
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Panel
|
+----display.Terminal
|
+----display.vt320
- public class vt320
- extends Terminal
- implements TerminalHost
A DEC VT320 Terminal Emulation (includes VT100/220 and ANSI).
The terminal emulation accesses the applet parameters to configure itself.
The following parameters may be set. Default values are written in
italics and other possible values are bold.
<PARAM NAME="VTcolumns" VALUE="80">
- Sets the columns of the terminal initially. If the parameter
VTresize is set to screen this may change, else it is fixed.
<PARAM NAME="VTrows" VALUE="24">
- Sets the rows of the terminal initially. If the parameter
value of VTresize screen this may change!
<PARAM NAME="VTfont" VALUE="Courier">
- Sets the font to be used for the terminal. It is recommended to
use Courier or at least a fixed width font.
<PARAM NAME="VTfontsize" VALUE="14">
- Sets the font size for the terminal. If the parameter
value of VTresize is set to font this may change!
<PARAM NAME="VTresize" VALUE="font">
- This parameter determines what the terminal should do if the window
is resized. The default setting font will result in
resizing the font until is matches the window best. Other possible
values are none or screen. none will let nothing
happen and screen will let the display try to change the
amount of rows and columns to match the window best.
<PARAM NAME="VTscrollbar" VALUE="false">
- Setting this parameter to true will add a scrollbar west to
the terminal. Other possible values include left to put the
scrollbar on the left side of the terminal and right to put it
explicitely to the right side.
<PARAM NAME="VTid" VALUE="vt320">
- This parameter will override the terminal id vt320. It may
be used to determine special terminal abilities of VT Terminals.
<PARAM NAME="VTbuffer" VALUE="xx">
- Initially this parameter is the same as the VTrows parameter. It
cannot be less than the amount of rows on the display. It determines
the available scrollback buffer.
- Version:
- $Id: vt320.java,v 1.5 1997/03/18 10:41:30 leo Exp $
- Author:
- Matthias L. Jugel, Marcus Meißner
-
vt320()
-
-
addNotify()
- Initialize terminal.
-
getParameterInfo()
- Get the specific parameter info for the emulation.
-
getSize()
- Return the current size of the terminal in characters.
-
getTerminalType()
- Return actual terminal type identifier.
-
handleEvent(Event)
- Handle events for the terminal.
-
putChar(char)
- Put a character on the screen.
-
putChar(char, boolean)
-
-
putString(String)
- Put String at current cursor position.
-
send(String)
- Dummy method to handle input events (String).
vt320
public vt320()
getParameterInfo
public String[][] getParameterInfo()
- Get the specific parameter info for the emulation.
- Overrides:
- getParameterInfo in class Terminal
addNotify
public void addNotify()
- Initialize terminal.
- Parameters:
- parent - the applet parent where to get parameters from
- Overrides:
- addNotify in class Panel
- See Also:
- Terminal
getSize
public Dimension getSize()
- Return the current size of the terminal in characters.
- Overrides:
- getSize in class Terminal
getTerminalType
public String getTerminalType()
- Return actual terminal type identifier.
- Overrides:
- getTerminalType in class Terminal
handleEvent
public boolean handleEvent(Event evt)
- Handle events for the terminal. Only accept events for the scroll
bar. Any other events have to be propagated to the parent.
- Parameters:
- evt - the event
- Overrides:
- handleEvent in class Component
send
public boolean send(String s)
- Dummy method to handle input events (String).
This is only needed if our parent is not TerminalHost
- Parameters:
- s - String to handle
- Returns:
- always true
- See Also:
- TerminalHost
putString
public void putString(String s)
- Put String at current cursor position. Moves cursor
according to the String. Does NOT wrap.
- Parameters:
- s - the string
- Overrides:
- putString in class Terminal
putChar
public void putChar(char c)
- Put a character on the screen.
- Overrides:
- putChar in class Terminal
putChar
public void putChar(char c,
boolean doshowcursor)
All Packages Class Hierarchy This Package Previous Next Index