home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware 1 2 the Maxx
/
sw_1.zip
/
sw_1
/
DESQVIEW
/
DVSI2_00.ZIP
/
PRINTCAP
< prev
next >
Wrap
Text File
|
1992-02-16
|
2KB
|
56 lines
# This is a sample PRINTCAP file. Edit it as you please.
# Comments must have the ``#'' character in the first column
#
# You should comment out printers that are not used to save system memory
# in the LPD window
#
# Here's the most basic print entry: LPD passes the file through
# unchanged. The lp token specifies the physical printer, and the
# sf token suppresses LPD-inserted form feeds at the end of each page
# (form feeds already in the document will still be printed)
lp: \
:lp=LPT1: \
:sf:
# Now let's get fancy. Format pages to 60 lines/page. We must not use
# sf here, or pl would be ignored. If we do not use sf and do not specify
# a pl page length, pl will default to 66 lines/page.
somewhat_fancy:
:lp=LPT1: \
:pl#60:
# Still kind of boring. How about initializing an Epson printer
# before the job with the initializer string ESCAPE-@, and form-feeding
# at the end of the job. The hr specifies a string to send to the printer
# before each file is printed. Here we use \E which is an escape (ASCII 27)
# followed by the ``@''. This character sequence resets an Epson printer.
# The tr string uses \f, a formfeed character, so a form feed is printed
# after each file.
little_fancier: \
:lp=LPT1: \
:pl#60: \
:hr=\E@: \
:tr=\f:
# Now things are looking better. But how about that printer on
# our serial port? We will use br to set the baud rate at 9600, and se
# to set the parameters at 8 bit, No parity, 1 stop bit, No handshaking
serial:\
:lp=COM1:\
:sf:\
:br#9600:\
:se=8N1N:
# Now let's say we want to print to our network printer. But that
# requires us to run a program defined in the DVP named C:\PR\NET.DVP
# Notice that if we use a drive name in the ``fi'' argument, a semicolon
# must be used rather than a colon
net: \
:lp=DVP: \
:fi=C;\PR\NET.DVP:
# and finally, let's print to the device driver EPS
eps_ptr:\
:lp=FILE:\
:fi=EPS: