HP 3000 Manuals

Ap G. Display Attributes [ Micro Focus COBOL System Reference, Volume 2 ] MPE/iX 5.0 Documentation


Micro Focus COBOL System Reference, Volume 2

Appendix G  Display Attributes 

Whenever a text character is displayed on the screen it has an attribute,
that is, a byte of information, associated with it.  The way the
character is displayed depends upon its attribute byte.The Micro Focus
COBOLrun-time system (RTS) enables characters to be displayed on the
screen with a number of display attributes.

The attributes available to you depend on the terminal you are using and
the terminfo entry for that terminal.  They could include high or low
intensity, underline, reverse video or blinking options.  You can alter
the value of the attribute byte, thus changing the way characters are
displayed on the screen.  You do this by changing either the screen
attribute or the user attribute.  See the chapter Library Routines 
(Call-by-Number) for information about the call enabling you to change
the user attribute.

The screen attributeenables you to specify an attribute that is
associated with each character position on the screen.  You can define
areas of the screen as having different attributes.  Whenever a character
is displayed on the screen it has the attributes associated with that
position.

The user attributeis associated with the whole screen.  All of the
characters displayed on the screen take the user attribute.  Once a
program has set the user attribute it is enabled through the whole of the
run, although another program within the same suite can change the
attribute.  The user attribute overrides any screen attributes you have
defined.



MPE/iX 5.0 Documentation