Download AOS Library User`s Manual

Transcript
Screen Formatting
3.0.1.2.1
Screen Clearing
The screen clearing operations are:
SC_Clr_Line
SC_Erase_To_Eol
SC_Clr_Screen
SC_Eras_Eos
Clears
Clears
Clears
Clears
line from [0, Y]
line from [X, Y]
screen from [0, 0]
screen from [X, Y]
All procedures require a text port record as a parameter.
Some
procedures require a coordinate as a parameter; with others, the
coordinate is implied. The cursor is placed at the specified text
port coordinates. The screen control unit attempts to perform the
operation with the screen functions available on the terminal.
If
the terminal does not support the screen operation, the operation
is simulated by writing blank characters and then re-positioning
the cursor at the specified text port coordinates.
3.0.1.2.2
Prompt Lines
The SC_PIompt function provides prompt line support when using text
ports. The function accepts a prompt line of the format:
<header>: <command> <command> .<command> • • •
<version>
Here is an example of a prompt line:
Command: A(ssem, F(ile, E(dit, R(un, H(alt [1.0]
The prompt is placed at a specified pOSition in the text port.
If
the prompt is long enough that it would extend past the end of the
text port, the SC_Prompt function breaks the prompt up (at some
specified break character, usually',') and displays the <header>
and <version> parts along with as many commands as can fit on the
line. After the prompt is written, the cursor may be placed either
at the end of the prompt line or at another' location in the text
port.
'The SC_Prompt function returns a key sequence read from the·
keyboard in response to the prompt.
Two sets are passed to
SC_Prompt as parameters.
If the primary acceptance ~ (of type
SC_Key_Command) is empty, the prompt line is displayed and SC_
Prompt returns an undefined character value; otherwise, SC_Prompt
continues to read keys from the keyboard until a key sequence is
read whose corresponding scalar is found in the primary acceptance
set. If the primary acceptance set contains the SC_Unknown scalar
and the key sequence read from the keyboard does not correspond to
any of the keys enumerated in the SC_Key_Command type, then the key
must be found in the secondary acceptance ~ (of type CHAR). Note
that escape sequences are specified in the secondary acceptance set
by biasing the second character of the sequence by 128.
If the prompt line is broken up because it is too long for the text
port, a '1' is appended to the list of commands.
A '1' input
causes a new subset of commands to be displayed in place of the
Paae
37 '