1
0
mirror of synced 2026-01-12 00:42:56 +00:00
Interlisp.medley/library/UNIXPRINT.TEDIT
Larry Masinter 6c25898c7d
unixprint (#254)
* UNIXPRINT.TEDIT upper case

* UNIXPRINTCOMMAND was an older copy of UNIXPRINT
2021-03-10 13:59:38 -08:00

16 lines
6.4 KiB
Plaintext
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

1
LISP LIBRARY MODULES, MEDLEY RELEASE 2.X, UNIXPRINT
1
LISP LIBRARY MODULES, MEDLEY RELEASE 2.X, UNIXPRINT
UNIXPRINT
1
UNIXPRINT
1
UNIXPRINT
6
UnixPrint lets you arrange to have hardcopy sent directly to a PostScript printer via a UNIX print command. You can set your default printing host so that it happens automatically.
2
Installation
1
Load UNIXPRINT.DFASL. Customize UNIXPRINTCOMMAND.
Then set the two control variables appropriately, as described below:
DEFAULTPRINTINGHOST [Variable]
This is a list of printer names, described in the Interlisp Reference Manual (refer to the IRM for a general description). To add a PostScript printer to the list, add an entry in the form (POSTSCRIPT printername). To continue the example above, DEFAULTPRINTINGHOST should have a value like the following:
(SETQ DEFAULTPRINTINGHOST
'( ÿÿï$ÿ ÿÿï$ (POSTSCRIPT daisy) ï$ ï$))ÿ
UnixPrinterName [Variable]
ÿÿA string or symbol, the name of the UNIX printer ÿto which ÿÿyou want output sent. This should be the name that you would give in the lpr command. For example, if you normally print files by entering:ÿ
lpr -Pdaisy . . .
then you should (SETQ UnixPrinterName "daisy"). If you do not normally specify a printer name, set UnixPrinterName to NIL.
2
Customization
1
You can get UNIXPRINT to use lp or lpr by modifying the function UnixPrintCommand. Your site may have a printing program other than lpr. For futher information about printing on your system, please refer to your system manual.
(UnixPrintCommand PRINTER COPIES NAME TMPNAME) [function]
Returns a string that is used by /bin/sh in the printing of the postscript code. The arguments are PRINTER, COPIES, NAME and TMPNAME. PRINTER is the name of the printer. COPIES is NIL or a fixp specifying how many copies to print . NAME is the string printed on the banner page of your hardcopy. TMPNAME is the name of the temporary file used to store the postscript code for your job.
A call to (UnixPrintCommand "daisy" 1 "Erik" "/tmp/foot") should return something like the string "/usr/ucb/lpr -Pdaisy -#1 -JErik -r -s /tmp/foot".
The source code of the function UnixPrintCommand is supplied with Medley. You are encuraged to write your own versions of this function depending on the site he or she uses. The function UnixPrintCommand is included in UNIXPRINT.DFASL. Sources and examples for different versions of UnixPrintCommand are included in the file UNIXPRINTCOMMAND.
[This page intentionally left blank](LIST ((PAGE NIL (PAPERSIZE Letter FOLIOINFO (ARABIC "" "") STARTINGPAGE# 349) (0 0 612 792) ((FOLIO NIL (PARALOOKS (QUAD RIGHT) CHARLOOKS (SUPERSCRIPT 0 INVISIBLE OFF SELECTPOINT OFF PROTECTED OFF SIZE 10 FAMILY MODERN OVERLINE OFF STRIKEOUT OFF UNDERLINE OFF EXPANSION REGULAR SLOPE REGULAR WEIGHT MEDIUM INVERTED OFF USERINFO NIL STYLE NIL) FORMATINFO (ARABIC "" "")) (270 15 288 36) NIL) (HEADING NIL (HEADINGTYPE FOOTINGR) (54 27 558 36) NIL) (TEXT NIL NIL (54 54 504 723) NIL))) (PAGE NIL (PAPERSIZE LETTER FOLIOINFO (ARABIC "" "")) (0 0 612 792) ((FOLIO NIL (PARALOOKS (QUAD LEFT) CHARLOOKS (SUPERSCRIPT 0 INVISIBLE OFF SELECTPOINT OFF PROTECTED OFF SIZE 10 FAMILY MODERN OVERLINE OFF STRIKEOUT OFF UNDERLINE OFF EXPANSION REGULAR SLOPE REGULAR WEIGHT MEDIUM INVERTED OFF USERINFO NIL STYLE NIL) FORMATINFO (ARABIC "" "")) (54 15 288 36) NIL) (HEADING NIL (HEADINGTYPE FOOTINGV) (54 27 558 36) NIL) (HEADING NIL (HEADINGTYPE VERSOHEAD) (54 762 558 36) NIL) (TEXT NIL NIL (54 54 504 684) NIL))) (PAGE NIL (PAPERSIZE LETTER FOLIOINFO (ARABIC "" "")) (0 0 612 792) ((FOLIO NIL (PARALOOKS (QUAD RIGHT) CHARLOOKS (SUPERSCRIPT 0 INVISIBLE OFF SELECTPOINT OFF PROTECTED OFF SIZE 10 FAMILY MODERN OVERLINE OFF STRIKEOUT OFF UNDERLINE OFF EXPANSION REGULAR SLOPE REGULAR WEIGHT MEDIUM INVERTED OFF USERINFO NIL STYLE NIL) FORMATINFO (ARABIC "" "")) (270 15 288 36) NIL) (HEADING NIL (HEADINGTYPE FOOTINGR) (54 27 558 36) NIL) (HEADING NIL (HEADINGTYPE RECTOHEAD) (54 762 558 36) NIL) (TEXT NIL NIL (54 54 504 684) NIL)))))
2<00>Ìøø2ÌÌøø3øøT3ø2øT,ÌÌø-ÌÌøT-ÌÌøT-øäìT200øFøø PAGEHEADING VERSOHEADFøø PAGEHEADING RECTOHEADEøø PAGEHEADINGFOOTINGVEøø PAGEHEADINGFOOTINGRTERMINAL
TITAN
MODERN
TERMINAL
MODERNMODERNMODERN

 HRULE.GETFNMODERN

5  HRULE.GETFNMODERN
 5
  HRULE.GETFNMODERN


 HRULE.GETFNMODERN

 HRULE.GETFNMODERN HRULE.GETFNMODERN
 HRULE.GETFNMODERN2F 2r  ")$e  6 HRULE.GETFNMODERN HRULE.GETFNMODERN5] !Z 0)2»P- $
‰zº