Provide access to the printer.
This chapter describes the PRINTER unit for Free Pascal. It was written for dos by Florian Klaempfl, and it was written for linux by Michael Van Canneyt, and has been ported to Windows and os/2 as well. Its basic functionality is the same for al supported systems, although there are minor differences on linux/unix.
Default printer file name
This constant is used to initialize the file on Linux. It is the filename argument that is given to .
Default printing file.
Lst
is the standard printing device.
On linux, Lst is set up using AssignLst('/tmp/PID.lst'). You can change this behaviour at compile time, setting the constant.
Assign text file to printing device

AssignLst Assigns to F a printing device - Unix only. ToFile is a string with the following form:

- '|filename options'
  : This sets up a pipe with the program filename, with the given options, such as in the popen() call.
- 'filename'
  : Prints to file filename. Filename can contain the string 'PID' (No Quotes), which will be replaced by the PID of your program. When closing lst, the file will be sent to lpr and deleted. (lpr should be in PATH)

- {'filename|'}
  Idem as previous, only the file is NOT sent to lpr, nor is it deleted. (useful for opening /dev/printer or for later printing)

Errors are reported in Linuxerror.