How Logical Attributes Are Named

A logical attribute name is an index into the system logical attribute array. When a logical attribute is encountered, Vermont Views uses the physical attribute or terminal attribute code in the appropriate position in the array. Since the array is already initialized to be specific to the current type of video display and the current operating system, the use of logical attributes is completely portable.

Table 46.1 gives the logical attribute definitions for PCDOS, OS/2, and terminals running on a memory-mapped display. Table 46.2 gives the logical attribute definitions for non-memory-mapped terminals running under UNIX, XENIX, POSIX and VMS.

In general, logical attributes are named and defined by their purpose. For example, some of the pre-defined logical attributes of Vermont Views are LFLDACT, LFLDINACT, LERROR, and LMESSAGE. LFLDACT, for example, is used to display an active data field. To change the color of all active data fields in your application, you simply need to change the color definition for LFLDACT.

Table 46.1: Logical Attribute Definitions for PCDOS, OS/2, and Memory-Mapped Output

Logical Attribute Monochrome Attribute Color Attributes Foreground/Background
LSYS Normal White on Black
LNORMAL Normal White on Blue
LREVERSE Reverse Blue on White
LHIGHLITE High intensity Bright White on Blue
LURGENT Blinking, high intensity Blinking Red on Black
LHELP High intensity Blue on White
LERROR Reverse Red on Black
LMESSAGE High intensity Bright White on Blue
LFLDINACT High intensity Cyan on Blue
LFLDACT Reverse Black on Cyan
LFLDSKIP Normal Black on White
LMNINACT High intensity Cyan on Blue
LMNACT Reverse Black on Cyan
LMNUNAVAIL Normal Black on White
LFLDSELCH Reverse Black on Cyan
LCLINACT High intensity Black on Green
LCLACT Reverse Green on Black
LMARK Reverse Blue on White
LNODISPLAY No display Blue on Blue
LARROW Reverse White on Black
LCORNER Normal White on Blue
LPAGERGN Normal 1 White on Black
LTHUMB Reverse 2 Black on White
LSHADOW Normal White on Black
LDEBUG Reverse Bright White on Red
LDEBUGMSG High intensity Red on White
LSPINCH Normal White on Blue

1 Reverse for memory-mapped displays
2 Normal for memory-mapped displays

Table 46.2: Logical Attribute Definitions for UNIX, XENIX, POSIX and VMS

Logical Attribute Monochrome Attribute* Color Attributes*
LSYS NORMAL COLOR9
LNORMAL NORMAL COLOR10
LREVERSE REVERSE COLOR11
LHIGHLITE HIGH_INT COLOR12
LURGENT BLINK COLOR13
LHELP HIGH_INT COLOR11
LERROR REVERSE COLOR14
LMESSAGE HIGH_INT COLOR12
LFLDINACT HIGH_INT COLOR15
LFLDACT REVERSE COLOR16
LFLDSKIP NORMAL COLOR15
LMNINACT HIGH_INT COLOR15
LMNACT REVERSE COLOR16
LMNUNAVAIL NORMAL COLOR15
LFLDSELCH REVERSE COLOR16
LCLINACT HIGH_INT COLOR12
LCLACT REVERSE COLOR11
LMARK REVERSE COLOR11
LNODISPLAY INVISIBLE INVISIBLE
LARROW REVERSE COLOR9
LCORNER NORMAL COLOR10
LPAGERGN REVERSE COLOR9
LTHUMB NORMAL COLOR15
LSHADOW NORMAL COLOR9
LDEBUG REVERSE COLOR5
LDEBUGMSG HIGH_INT COLOR1
LSPINCH NORMAL COLOR10

* The actual attributes displayed depends on the vvtermcap entry defined for the monochrome and color attribute values.


Home Contents Previous Next