A program is said to run in batch if the standard input stream is anything else than terminal input. For instance, running under Unix with input taken from a file (e.g. by typing garfield < input) will result in BATCH being set to True.
This variable is meant to be used in conjunction with the SINGLE-FRAME-FILE option when opening a workstation which should only receive one frame per file, such as an Encapsulated PostScript file.
You may change the value of this variable, but not its type.
The variable has a value of "Standard input" when input comes from standard input. The value changes while an initialisation file is read, and also whenever you use input redirection.
This variable can be used to construct automatically a name for a metafile:
If input#`Standard input` Then !add meta type PostScript file-name "{input}.ps" !open meta !act meta Else !add meta type PostScript file-name "garfield.ps" !open meta !act meta Endif
A program is said to run interactively if the standard input stream is terminal input. INTERACT will be set to True if you start Garfield by simply typing the name of the executable, but INTERACT will be set to False if input is taken from a file (e.g. by typing garfield < input).
Currently, the following values can be returned:
Value | Meaning |
---|---|
Apollo |
Apollo systems running SR 10 |
CMS |
VM/CMS, an IBM operating system |
Cray |
Cray running UNICOS |
MVS |
MVS, an IBM operating system |
Vax |
Vax or Alpha systems running VMS or OpenVMS |
Unix |
Various Unix systems, including Linux |
< not known > |
Unidentified system |
Most procedures and also several regular commands set this variable depending on the success of the calculations requested.
The variable has a value of "Standard output" when output is sent to the standard output stream. The value changes whenever you use output redirection.
Time limits are relevant mostly while running in batch and checking this variable permits graceful termination of iterative calculations.
This variable is of type Number.
This is a Number which may be modified by the user, but its value can at any moment be overwritten by the program.
Formatted on 21/01/18 at 16:55.