User guide

4.4. CLI.B AND CLI INIT.B 129
cli
faillevel CIN:y, POS:y, NAT:y
cli
data CIN:y, POS:y, NAT:y
This holds CLI data dependant on the context in which the CLI is running.
cli
commanddir CIN:y, POS:y, NAT: y
cli
prompt CIN:y, POS:y, NAT:y
This variable holds the current promp t which should be a writef format string
since it used in the CLI as foll ows:
writef(cli_prompt,
cpumsecs, // msecs used by last command
taskid, // The task number, if running under Cintpos
hours, mins, secs, msecs) // The time of day
where hours, mins and secs correspond to the current time of day. On single threaded
BCPL systems taskid is set to 1.
cli
currentinput, cli currentoutput, cli standardinput, cli standardoutput
CIN:y, POS:y, NAT:y
The standard input and output streams are those that were setup when the CLI
was started. Sometimes a CLI will change its currently selected streams. For instance,
while executing a command-command the currentl y selected input will be from a tem-
porary file of commands. On reaching the end of file input will revert to the standard
input.
cli
commandfile CIN:y, POS:y, NAT:y
This is either zero or holds the name of temporary command file used in
command-commands.
cli
status CIN:y, POS:y, NAT:y
This holds a collection of bits specifying the context in which the CLI is running.
The mnemonics for these bits and their meanings are as follows.