FANDOM


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

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.