-
Declaration:
- Procedure AssignLst ( Var F : text; ToFile : string[255]);
-
Description:
- LINUX only.
Assigns to F a printing device. 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:
- Errors are reported in Linuxerror.
-
See also:
- lpr (1)
Listing: printex/printex.pp