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="Fx" VALUE="functionkeytext">
Sets the string sent when the function key Fx (x between 1 und 20) is pressed.
<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.
<PARAM NAME="VTcharset" VALUE="none">
Setting this parameter to ibm will enable mapping of ibm characters (as used in PC BBS systems) to UNICODE characters. Note that those special characters probably won't show on UNIX systems due to lack in X11 UNICODE support.
<PARAM NAME="VTvms" VALUE="false">
Setting this parameter to true will change the Backspace key into a delete key, cause the numeric keypad keys to emit VT100 codes when Ctrl is pressed, and make other VMS-important keyboard definitions.
<PARAM NAME="Fnr" VALUE="string">
Function keys from F1 to F20 are programmable. You can install any possible string including special characters, such as
\eEscape
\bBackspace
\nNewline
\rReturn
<PARAM NAME="CFnr" VALUE="string">
Function keys (with the Control-key pressed) from CF1 to CF20 are programmable too.
<PARAM NAME="SFnr" VALUE="string">
Function keys (with the Shift-key pressed) from SF1 to SF20 are programmable too.
<PARAM NAME="AFnr" VALUE="string">
Function keys (with the Alt-key pressed) from AF1 to AF20 are programmable too.
Version:
$Id: vt320.java,v 1.56 1998/03/07 23:47:03 marcus Exp $
Author:
Matthias L. Jugel, Marcus Mei?ner

Variable Index

 o INSERT
The Insert key.
 o KEYCAPS_LOCK
 o KEYINSERT
 o KEYNUM_LOCK
 o KEYPAUSE
 o KEYPRINT_SCREEN
 o KEYSCROLL_LOCK
 o unimap

Constructor Index

 o vt320()

Method Index

 o addNotify()
Initialize terminal.
 o getParameterInfo()
Get the specific parameter info for the emulation.
 o getSize()
Return the current size of the terminal in characters.
 o getTerminalType()
Return actual terminal type identifier.
 o handleEvent(Event)
Handle events for the terminal.
 o map_cp850_unicode(char)
 o putChar(char)
Put a character on the screen.
 o putChar(char, boolean)
 o putString(String)
Put String at current cursor position.
 o send(String)
Dummy method to handle input events (String).
 o toString()
Return the version of the terminal emulation and its display.

Variables

 o KEYPRINT_SCREEN
  public final static int KEYPRINT_SCREEN
 o KEYSCROLL_LOCK
  public final static int KEYSCROLL_LOCK
 o KEYCAPS_LOCK
  public final static int KEYCAPS_LOCK
 o KEYNUM_LOCK
  public final static int KEYNUM_LOCK
 o KEYPAUSE
  public final static int KEYPAUSE
 o KEYINSERT
  public final static int KEYINSERT
 o INSERT
  public final static int INSERT
The Insert key.
 o unimap
  public final static char unimap[]

Constructors

 o vt320
  public vt320()

Methods

 o toString
  public String toString()
Return the version of the terminal emulation and its display.
Overrides:
toString in class Component
 o getParameterInfo
  public String[][] getParameterInfo()
Get the specific parameter info for the emulation.
Overrides:
getParameterInfo in class Terminal
 o addNotify
  public void addNotify()
Initialize terminal.
Parameters:
parent - the applet parent where to get parameters from
Overrides:
addNotify in class Panel
See Also:
Terminal
 o getSize
  public Dimension getSize()
Return the current size of the terminal in characters.
Overrides:
getSize in class Terminal
 o getTerminalType
  public String getTerminalType()
Return actual terminal type identifier.
Overrides:
getTerminalType in class Terminal
 o 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
 o 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
 o 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
 o putChar
  public void putChar(char c)
Put a character on the screen.
Overrides:
putChar in class Terminal
 o map_cp850_unicode
  public char map_cp850_unicode(char x)
 o putChar
  public void putChar(char c,
                      boolean doshowcursor)

All Packages  Class Hierarchy  This Package  Previous  Next  Index