    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

  `\e` | Escape
  `\b` | Backspace
  `\n` | Newline
  `\r` | Return

Version:
  $Id: vt320.java,v 1.48 1997/11/03 17:34:55 marcus Exp $
Author:
  Matthias L. Jugel, Marcus Meißner

##

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

##

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.
map_cp850_unicode(char)
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).
toString()
  Return the version of the terminal emulation and its display.

##

KEYPRINT_SCREEN

      public final static int KEYPRINT_SCREEN

KEYSCROLL_LOCK

      public final static int KEYSCROLL_LOCK

KEYCAPS_LOCK

      public final static int KEYCAPS_LOCK

KEYNUM_LOCK

      public final static int KEYNUM_LOCK

KEYPAUSE

      public final static int KEYPAUSE

KEYINSERT

      public final static int KEYINSERT

INSERT

      public final static int INSERT

  The Insert key.

unimap

      public final static char unimap[]

##

vt320

      public vt320()

##

toString

      public String toString()

  Return the version of the terminal emulation and its display.
  Overrides:
    toString in class Component

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

map_cp850_unicode

      public char map_cp850_unicode(char x)

putChar

      public void putChar(char c,
                          boolean doshowcursor)

    All Packages  Class Hierarchy  This Package  Previous  Next  Index