STANDARD.OUTPUT

Syntax

MAKE "STANDARD.OUTPUT number

Explanation

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.

See also OPEN, CLOSE and CREATE.

Example

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 \.

TO OUTPUT.TO.PRINTER


 * MAKE "STANDARD.OUTPUT OPEN "PRN\:

END

TO OUTPUT.TO.SCREEN.AGAIN


 * TEST :STANDARD.OUTPUT = 0


 * IFF [CLOSE :STANDARD.OUTPUT]


 * MAKE "STANDARD.OUTPUT 0

END