# PRINTER Commands

Syntax:

Then: printer "printercommand"
Then: printer local
Then: printer file "filepathname"
Then: printer reset

Then: printer flush

where:

"printercommand" is the same as an operating system printer command (UNIX/XENIX). An example is "printer lp-dlaser"

"printer local" redirects output to a printer connected to the user's terminal (UNIX/XENIX)

"filepathname" is the name of a file to which the output is redirected (UNIX/XENIX or DOS). (An example: printer file "/tmp/output".) "filepathname" can also be a destination file name for going directly to a printer (bypassing the spooler). Example: "printer file /dev/tty01"

"printer reset" cancels any previous printer commands in processing and returns to whatever printer command was in effect before processing started (UNIX/XENIX or DOS)

"printer flush" flushes any printer buffers within filePro.

Version Ref: Various

Description:

PRINTER lets you redirect output to a printer other than the system printer, or to a printer file.

PRINTER can be used on all processing tables. One obvious use for PRINTER is in input processing, where you might want to send forms and hardcopies to a special printer.

PRINTER "command" | Sends output to "command". (UNIX/XENIX only)
PRINTER FILE "filename" | Sends output to file "filename".
PRINTER LOCAL | Sends output to terminal printer. (UNIX/XENIX only)
PRINTER NAME "name" | Sends output to printer "name".
PRINTER TYPE "type" | Sets printer type.
PRINTER RESET | Resets the printer.
PRINTER FLUSH | Flushes printer buffers within filePro.

IMPORTANT: If you use one or more of the other PRINTER functions, you must execute a PRINTER RESET before altering any of them or using new ones. The PRINTER RESET clears any PRINTER operations from the processing table and puts things back to the condition they were in when the processing table was first encountered. This is an important function to remember when a series of PRINTER routines does not function the way you think it should.