The PRINTER ON and OFF statements determine whether output from PRINT statements to the default print unit (unit 0) is directed to the display or to the printer.
The PRINTER ON statement causes subsequent output to print unit zero to be directed to the printer. A later PRINTER OFF statement resumes output to the display.
The STATUS() function returns the previous state of the PRINTER setting. A value of zero indicates that the printer was on. A value of one indicates that it was off.
By using PRINT statements instead of DISPLAY in programs it is possible to select whether the output is directed to the display or to a printer. The LPTR option to the RUN command is equivalent to a PRINTER ON at the start of the program followed by a PRINTER CLOSE on return to the command prompt.
PRINT "This is sent to the printer"
PRINT "This is sent to the display"