HTBasic Help
×
Menu
Index

PRINTER IS

Specifies the system printing device.
 
 PRINTER IS destination [;attributes]
 
Usage:
PRINTER IS 701
PRINTER IS "Myfile";WIDTH 80
PRINTER IS 12;EOL A$ DELAY .5
PRINTER IS Dev;WIDTH 120,EOL My$ END
 
Example:           PRINTER IS.BAS
 
Description:
PRINTER IS specifies the destination for all PRINT, CAT and LIST statements which do not specify a destination. The PRINTER device is the CRT at start-up and after SCRATCH A.
 

Destinations

The output can be sent to a device (usually a printer) or a file. If the destination is a file, it must be an existing regular file or a BDAT file. If a file is specified, it is positioned to the beginning (unless APPEND is specified) and closed when another PRINTER IS or SCRATCH A statement is executed.
 

Attributes

The EOL attribute specifies a new end-of-line string of up to eight characters. The END attribute specifies an EOL to be sent with the last character of the EOL string. The DELAY attribute specifies a time to wait after sending the EOL string and before continuing with program execution. The delay is in seconds and should be in the range 0.001 to 32.767, but is rounded to the timing resolution of the computer. The OFF attribute returns the EOL string to the default CR/LF, no EOL and no DELAY.
 
The WIDTH attribute specifies the maximum number of characters sent to the printing device before an automatic EOL sequence is sent. If WIDTH OFF is specified, the width is set to infinity. If WIDTH is not specified, it defaults to the width of the screen.
 
If APPEND is specified and output is to a file, the file position is moved to the end-of-file before any data is sent to the file. If APPEND is not specified, the file contents are replaced with new data.
 
See Also: