The primitive command system is described in (p3,cmdlang). The command system factory (PCSF) {(p3,slpcsf)} will create an instance of the command system. PCSF is prompt, if it is given a valid meter and space bank!?
PCSF(kt+5;SBANK,METER,DIRECTORY ==> kt+5,;CSDK,,,CSCO) where
The command system will return a domain key to itself {CSDK} and open a co-routine linkage via CSCO. An invocation of CSCO(0,;CCK3,SIK3,SOK3) will pass the terminal to be used to the command system. CSCO does not return. From its initial creation, the command system will always be busy, or waiting {most likely for terminal I/O}.
PCSF(0,;SBANK,METER,DIRECTORY) will also create a command system but the new command system will use the key SWITCHER (found in the directory) to get circuit keys.
Directory should be a name sequence record collection containing the following items:
DIRECTORY - an entry key to the DIRECTORY passed when the command system was created.
MAIL. - A name sequenced record collection to be used for inter-user communication.
METER - A meter key to the command systems meter so it can pass the meter along to its siblings.
METERNODE - A node key to the command systems meter (just to make it easier to read same)
SYSNODE - (optional) The system privileged facilities node, for carefully selected users only.
SPACEBANK - An entry key to the command systems space bank.
SYS. - A read-only key to name sequence record collection defining generally available facilities. It must contain "FILEDEFSEG", and ought to contain "EDITOR". It probably ought to also contain all of the facilities found in WOMBFACILFUND and WOMBFACILSUPP.
WOMBFACIL - A womb facilities node to be passed to users of the WOMBTEST command. (The command system tries to install its own virtual domain keeper in WOMBFACILRESDOMKEY.)
ZAPPER - An entry key to the zapper module for the command systems terminal.