HP 3000 Manuals

USING TERMINAL FEATURES [ HP Data Entry and Forms Management System (VPLUS/V) ] MPE/iX 5.0 Documentation


HP Data Entry and Forms Management System (VPLUS/V)

USING TERMINAL FEATURES 

VPLUS/V provides a way to take advantage of special terminal features,
using processing specifications (refer to Section 4), using VPLUS/V
intrinsics (refer to Section 6) and with selections on the FORMSPEC
menus.  Two of the special terminal features that can be specified on
FORMSPEC menus are security and color, as described below.  Refer to
Appendix G for a list of terminals that support these features.

The Security Enhancement 

To use security takes three steps:

 *  choose the S type display enhancement on the Field Menu,

 *  select the appropriate terminal family on the Terminal/Language
    Selection Menu, and

 *  use only visible brackets.

Refer to Appendix G for a list of terminals that support the security
enhancement.

Color Enhancement 

VPLUS/V provides a simple means of providing color field, error and
window enhancements for use with terminals that have the color feature.
Refer to Appendix G for a list of terminals with color.  The addition of
color to an application requires no programming changes; all color
definitions are contained in the forms file.

A well-designed screen layout employing color can improve the
attractiveness and effectiveness of its presentation.  The added
dimension may allow the expression of ideas not easily representable
before or it may allow the expression of complex ideas in a simpler
format using color.

Terminal Color Pairs.  There is a set of 8 default color pairs Table 3-7.
VPLUS/V uses the terminal color pairs to implement color enhancements,
with the terminal color pair O mapping to VPLUS/V color pair 8 and
terminal color pairs 1-7 mapping to VPLUS/V color pairs 1-7.  VPLUS/V
assumes that an application has set its own values if the default values
are not acceptable.  It does not reinitialize the terminal's color pairs
when the terminal is opened.

Color Field Enhancements.  The Field Menu in FORMSPEC provides the means
for defining color field enhancements.  The numeric digits 1-8 are
acceptable inputs into the enhancement(ENH) field on the Field Menu in
FORMSPEC. The fields are then enhanced at run-time corresponding to the
color pairs initialized programmatically or by a terminal hard
reset/power on.

VPLUS/V also supports the global definition of default field
enhancements.  A numeric digit (1-8) is also accepted as input in the
Globals Menu for the definition of a default color pair for all fields in
a forms file.

          Table 3-7.  Default Color Pairs 

-----------------------------------------------------------------------------------------------
|                              |                              |                               |
|          Color Pair          |          Foreground          |          Background           |
|                              |                              |                               |
-----------------------------------------------------------------------------------------------
|                              |                              |                               |
|              8               |            white             |             black             |
|                              |                              |                               |
|                                                                                             |
|                              |                              |                               |
|              1               |             red              |             black             |
|                              |                              |                               |
|                                                                                             |
|                              |                              |                               |
|              2               |            green             |             black             |
|                              |                              |                               |
|                                                                                             |
|                              |                              |                               |
|              3               |            yellow            |             black             |
|                              |                              |                               |
|                                                                                             |
|                              |                              |                               |
|              4               |             blue             |             black             |
|                              |                              |                               |
|                                                                                             |
|                              |                              |                               |
|              5               |           magenta            |             black             |
|                              |                              |                               |
|                                                                                             |
|                              |                              |                               |
|              6               |             cyan             |             black             |
|                              |                              |                               |
|                                                                                             |
|                              |                              |                               |
|              7               |            black             |            yellow             |
|                              |                              |                               |
-----------------------------------------------------------------------------------------------

Since the ENH fields in the Field Menu and the Globals Menu are four
characters long to allow for a combination of four different enhancements
from the enhancement set of H, I, B, U, S or NONE, support for all
combinations of color and display enhancements will not be possible.  For
example, a field defined to have a display enhancement combination of
half bright, inverse video, underline and blinking (HIBU) will not be
able to accomodate an extra numeric character for color definition
(HIBU2).  If a color pair is specified with no other enhancements, it
implies the enhancement of NONE.

Color Error Enhancements.  VPLUS/V supports global error enhancements by
allowing the forms designer to define the desired error enhancement on
the Globals Menu in FORMSPEC at design time.  This error enhancement
applies to all fields which appear in error at run-time.  Like the field
enhancement, the error enhancement can be defined as a combination of
four characters which may contain a digit from 1 to 8 to indicate a color
pair.

Color Window Enhancements.  The window enhancement field on the Globals
Menu in FORMSPEC allows the definition of a four character combination to
define the enhancement of the window.  Like the field and error
enhancements, a color pair represented by a numeric digit can be entered
to enhance the window line.

Color Locks.  FORMSPEC allows color escape sequences to be added by the
forms designer to enhance the text of a form to various colors when the
form is being created.  If the same form is displayed on a HP 262X
compatible terminal which does not support color, the color escape
sequences are stripped.  Therefore, if the color form is displayed in
FORMSPEC and ENTER is pressed, the form will no longer contain the color
escape sequences.  To avoid the erasure of valuable work, FORMSPEC will
disallow color form modification on non-color terminals if an X is
entered in the HP 2627A field on the Terminal/Language Selection Menu.



MPE/iX 5.0 Documentation