Screen

From BR Wiki
Jump to navigation Jump to search

The Screen brconfig.sys specification provides brief notation for controlling display attributes of PRINT FIELDS, INPUT FIELDS, and RINPUT FIELDS statements. These are single letter references intended to denote common display characteristics such as Normal, Bold, Highlighted or Reverse. At one point Underline was a supported convention, although it has now come to represent text-entry.

Syntax

Start-up Default

SCREEN B 80,H 08,I 00,N 07,R 70,S 07,U 01

Parameters

Each of the parameters in the SCREEN syntax is composed of a pair of specifications: a display attribute (B, H, I, N, R, S, or U), and "##" (a two- digit hexadecimal code). A space must always separate the display attribute from the hexadecimal code.

The following table identifies the intended use of each of the display attributes. Note that S may be used to set characteristics of the status line, although the S specification does not apply as an attribute in for PRINT FIELDS, INPUT FIELDS and RINPUT FIELDS.

 B  Blink
H High intensity
I Invisible
N Normal
R Reverse
S Status line
U Underline

The "##" portion of each SCREEN parameter originally denoted with a two digit hexadecimal code representing the characteristics to which the display attribute should be assigned. The hexadecimal codes were as follows:

 80  Blink
40 Background red
20 Background green
10 Background blue
08 High intensity
04 Foreground red
02 Foreground green
01 Foreground blue
70 (black on white) is the "normal" default for the Windows model.

Now, however, the single letters should refer to ATTRIBUTE names such as:

 B	[bold]
H [hilight]
I [invisible]
N [normal]
R [reverse]
U [text-entry]
S [status-line]

The ATTRIBUTE names must also appear in ATTRIBUTE BRConfig.sys statements.

The preferred form of the SCREEN statement is therefore:

SCREEN B [bold], H [hilight], I [invisible], N [normal], R [reverse], U [text-entry], S [status-line]

See also BRconfig.sys#Command Console Colors. The SCREEN C xx specification determines the foreground and background colors of the command console.

Screen OpenDflt

Screen OpenDflt "Srow=nn, Scol=nn, Title=APPLICATION NAME, Buttonrows=nn", N 70 ...other screen attributes

Specifies the window parameters for opening the main screen when information is displayed prior to explicitly OPENing file #0.