previous up contents next
Left: Permute Up: Standard library function functions Right: Writeline


Readline allows one to obtain a sequence of atoms from the user.

    Readline:<type 'YES' or 'NO' here.>

This will print `type YES or NO here' as a prompt and return whatever is typed in in response as the value (up to, but not including, the carriage return), construed as a sequence of atoms (whether or not initial capitals appear). Note the use of the path cut operator to prevent several yards of irrelevant atoms being printed at the end of the prompt.


Copyright © Roger Evans, Gerald Gazdar & Bill Keller, Tuesday 10 November 1998