We have already met the PRINT command for output to the terminal. The analogous commands for terminal input are called INPUT, INPUTR, INPUTI and INPUTL. INPUT reads a line of text from the terminal into a string variable and has the form:
ICL> INPUT Enter your name> (name)The last parameter must specify a variable in which the input will be returned and must therefore be in parentheses. The earlier parameters form a prompt string.
INPUTR, INPUTI and INPUTL are used to input real, integer or logical values. A single line of text may be used to supply values for more than one variables so these commands have the form:
ICL> INPUTR Prompt (X) (Y) (Z)Only the first parameter is used to provide the prompt string, so if it has spaces in it the string must be enclosed in quotes.
INPUTL will accept values of TRUE, FALSE, YES and NO in either upper or
lower case, as well as abbreviations.
ICL The Interactive Command Language for ADAM