-15-69- stty-option-list. - , - . , - , - -. :  /usr/lib/lpadmin -p printer-name -o "stty=-onlcr" , , - . -15-70- , - , . : 2/usr/lib/lpadmin -p 1printer-name -o "stty='parenb parodd cs7'"  terminfo terminfo  - , , . , - terminfo . terminfo . terminfo - . , - TERM, , AT&T - 455 . terminfo - : . , - , , - . , terminfo, , . , . , terminfo. , - . 15.9 , ( ) - . -15-71-  15.9 terminfo terminfo ------------------------------------------- daisy , bufsz  , cols  it  # lines  orc  orhi  orl  orvi  cps  : cr  cpi  lpi  chr  cvr  csmn  mgs  (, ) hpa  cud1  cuf1  swidm  rwidm  ff  is1   is2   is3   if   -15-71- iprog   cud  #  cuf  #  rep  #  vpa   -15-72 scs   smgb   smgbp   smgl   smglp   smgr   smgrp   smgt   smgtp   scsd   ht  8- terminfo(M) User's Reference terminfo . , , - tic. - : 2 tic filename filename - , terminfo, . ( - ).  LP - - terminfo. terminfo - , , , , . -15-73-    , - LP UNIX Y 3.2, . , , - - . - , - . , terminfo, - - , . - , . /usr/spool/lp/model/standard.  ? : - . stty. - . terminfo TERM , - . - . - . - . , . - , , - - , SIGHUP . - -15-74- . - , - , , .  ? , - : 2/usr/spool/lp/admins/lp/interface/P id user title copies options file1 file2 ... : P  id  , lp user  , title  , copies  , options , , , file  , /dev/null, , , - , . : nobanner , . - . nofilebreak - , . cpi=decimal-number1 -  lpi=decimal-number2 -  -15-75-  decimal-number1 decimal-number2 . - terminfo - , - . pica, elite compress - decimal-number1 10 , 12 , . 2length=decimal-number1 2width=decimal-number2 , - , . terminfo - , - . 2stty='stty-option-list' stty-option-list -  - stty. - , , - , - . , , (cpi, lpi, length, width, stty) , - (cpi, lpi, length, width). - : 2 TERM=printer-type . - terminfo. 2 FILTER='pipeline' () , . -15-76- 2 CHARSET=character-set ( ) , - . terminfo , - . - , - .   , - stty ( , - ). , - . , - : ## Initialize the printer port ( ) , . , - , : 2 stty 1mode options 0<&1 ( ) stty . stty, - 1200 , :  stty -parenb -parodd 1200 cs8 cread clocal ixon 0<&1 , - , - . - , -15-76- . , : # Here you may want to add other port initialization code ( ). , , "" . - , 80- ( , ). - , -15-77- ## Print the banner page ( ) , , . , , , , , - , , . , . :  15.10 ------------------------------------------- 0 . , . 1-127 - (, ). - . - , - . , . 128 - LP. . 129 . - . - , . , , . >129 . - . 129. -15-78- , , - , , . , - , - , . - . - , - . , , , - . lp.tell. $LPTELL . , , . , lp.tell . , - lp.tell ($LPTELL): # Here's where we set up the $LPTELL program to capture # fault messages. # Here's where we print the file. ( $LPTELL . ). 129 lp.tell - . , . , - , lp.tell - . -15-78- , 15 ( kill(C) User's Reference signal(S) Programmer's Referense). , - , - . - , , , . SIGHUP, SIGINT, SIGOUT, SIGPIPE ( 1, 2, 3 13) , . . - , - , . , , . - : - ( - ). -15-79- - ( , ) , , , - . - , - .   , , . . , - . , . - , , - , - , . : 2 /usr/lib/lpadmin -p 1printername 2-i pathname - : 2 /usr/lib/lpadmin -p 1printername1 2- printername2 1 2 printername1 , , printername2 , , . -15-79- - : 2 /usr/lib/lpadmin -p 1printername 2-m modelname   , , . , , -15-80- , - : - - . - . - , . - , . - - , , , - , . , - , . -, . - , . - , - , - . "" , - . , : - , - . - , . , - - . - , . - , , . - - . - . , . - , (, -15-80- ). - , - . - , . " " "" . -15-81-   - , - . , - . , - - : - - - - - - - - - ; , , - . , , - , , . - , , - , , .   . - terminfo. , , - , . . , , - . -15-82- - . - : 2 /usr/lib/lpadmin -p 1printername 2-T printer-type  sysadmsh : Printer-->Configure-->Parameters (-->-->) , - unknwn. , , , .   , - , , , - . - ; . , , - - . , . , - , . , -, - -. ( ) . - -, , - - , . ( simple, terminfo  any - ; - ). 14 , . - , . -15-82- , , - , . , - PostScript. , ( , - ), , - , postscript. , - , -15-83- ANSI X3.64. - ANSI . , - . . , , . - , , - simple. , , , - . UNIX simple. , - ASCII : - - , 8 ( - " ") (- ) "" - , . simple , () , - . , simple, , . ( - , ). terminfo. , , terminfo. , -15-83- , - . - . any , - . - , . -15-84- : 2 /usr/lib/lpadmin -p 1printername2 -I content-type-list (--)  sysadmsh : Printer-->Configure-->Content (-->-->) -- - , - . , (  -I) . , , - , simple , ( ).   . . , - , - . . , - - . , : . : . UUCP . , - : , , UUCP . , , " ". . UNIX,  -15-84- ( - ). cu , LP, - cu.  cu , : cu , - LP ( " UUCP -15-85- ). , , : 2 /usr/lib/lpadmin -p 1printer-name 2-U dial-info ( )  sysadmsh  : Printer-->Configure-->Add (-->-->) dial-info - , , ,  UUCP . lpadmin -U, - v. , -l, LP . 10 , 20 , . . - enable . - , disable. lpstat -p . , ( " " ), . - , UUCP . , " - UUCP" " UUCP .   , , . , , , . - . - : , - . - . -15-85- , , - , - - . . -15-86- , . . - - , . , - , . , . - , - , terminfo. , terminfo: 2 TERM=1printer-type tput csnm 0 printer-type - . - ( ) . , 1, 2, 3 0, . terminfo , - . , - , terminfo - .  terminfo . " ". - : -15-86- 2 /usr/lib/lpadmin -p1 printer-name 2-S print-wheel-list ( -)  sysadmsh : Printer-->Configure-->Parameters (-->-->) print-wheel-list - , . , -