MAKE "STANDARD.OUTPUT number
STANDARD.OUTPUT is a pre-defined name which controls the destination of the Logo output stream. When Logo starts up, the default value of STANDARD.OUTPUT is 0, which means that output from Logo is displayed on the screen.
To change the destination of the output stream to another device such as a printer, the device must be opened to prepare it for output, and STANDARD.OUTPUT assigned a new value.
To change the source of Logo's input stream, use STANDARD.INPUT.
The following procedures redirect the output stream to the printer. Note that when the output stream is redirected to another device, it no longer appears on the screen.
Since a colon (:) is a delimiter, it must be quoted with \.
- MAKE "STANDARD.OUTPUT OPEN "PRN\:
- TEST :STANDARD.OUTPUT = 0
- IFF [CLOSE :STANDARD.OUTPUT]
- MAKE "STANDARD.OUTPUT 0