1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132
|
VTPRINTCAP(5) FILE FORMATS VTPRINTCAP(5)
NNAAMMEE
vtprintcap - database of terminal printer control codes
SSYYNNOOPPSSIISS
//uussrr//llooccaall//lliibb//vvttpprriinntt//vvttpprriinnttccaapp
DDEESSCCRRIIPPTTIIOONN
vvttpprriinnttccaapp is a simple flat file database containing a
list of the names of various terminals and the codes those
terminals use to start and stop an attached printer (media
hard copy). This database is used by vvttpprriinntt(1) and
related programs.
Each entry is composed of three lines. The first line is
a comma-delimited list of names which may be used to ref-
erence this entry. The second line the sequence of char-
acters used by the terminal to turn on an attached hard
copy device and redirect output to that device. The
third line contains the sequence of characters used to
turn the device off and restore normal output to the
screen.
An entry must have all three lines to be considered valid.
Currently no comment lines are permitted to exist between
these lines: such lines would be interpreted as the
printer control codes themselves!
The rules for selecting a terminal name are simple: you
must follow the same rules as for //eettcc//tteerrmmccaapp(5) names.
Terminal names should be entered in
//uussrr//llooccaall//lliibb//vvttpprriinntt//vvttpprriinnttccaapp with exactly the same
names as are in //eettcc//tteerrmmccaapp.
The control code strings in the second and third lines of
an entry are governed as follows: ANSI C style escapes for
character constants (e.g. \n for newline) are permitted,
constant strings are permitted, and quotes may be used to
as delimiters in the string. (This is useful if you wish
you use a digit immediately following a numeric escape.
For example, ESC-5 should be represented as \033"5" to
avoid confusion in with \335. In general, the rules out-
lined for ANSI constant escaping are enforced.
Additionally, //uussrr//llooccaall//lliibb//vvttpprriinntt//vvttpprriinnttccaapp may con-
tain comment lines, which are indicated by placing a hash
mark (#) in the first column of the line. Remember how-
ever that entries must _n_o_t be broken up by comment lines!
EEXXAAMMPPLLEE
Here is a sample entry common to DEC vt100 and vt102 ter-
minals:
# Sample vtprintcap entry for vt100 & vt102
vtprint v2.0.2 25 October 1994 1
VTPRINTCAP(5) FILE FORMATS VTPRINTCAP(5)
terminals
vt100, vt102
\033[5i
\033[4i
This entry would be used whenever the user's TERM environ-
ment variable was set to "vt102" or "vt100", using ESC [5i
and ESC [4i as the printer control codes to turn a printer
on and off, respectively.
DDIISSTTRRIIBBUUTTIIOONN
vvttpprriinnttccaapp is part of the vvttpprriinntt package, which can be
obtained by anonymous ftp at ftp.sdsu.edu in the
//ppuubb//vvttpprriinntt directory. Please read the IINNDDEEXX and RREEAADDMMEE
files before downloading.
If you do not have ftp availability, then you can request
a uuencoded copy of vvttpprriinntt be sent to you via e-mail from
the author. The author is also willing to make other
arrangements as needed, within certain limitations.
FFIILLEESS
//eettcc//tteerrmmccaapp
//uussrr//llooccaall//lliibb//vvttpprriinntt//vvttpprriinnttccaapp
BBUUGGSS
vvttpprriinnttccaapp handling code currently could get confused if a
printer control code is exactly the same as the name of a
terminal, or contained the name of a terminal delimited by
commas. As this is very unlikely to every occur, it
shouldn't be a problem.
SSEEEE AALLSSOO
tteerrmmccaapp(5) vvttpprriinntt(1)
vtprint v2.0.2 25 October 1994 2
|