File: README.banner

package info (click to toggle)
cti-ifhp 2.2.8-1
  • links: PTS
  • area: main
  • in suites: slink
  • size: 904 kB
  • ctags: 673
  • sloc: ansic: 4,916; sh: 1,539; makefile: 287; perl: 99
file content (69 lines) | stat: -rw-r--r-- 2,446 bytes parent folder | download
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
               BANNER PRINTING

          Original: Wed Jan  3 07:12:57 PST 1996
           Updated: Thu Nov 14 09:00:15 PST 1996
                Patrick Powell


The CTI-ifhp filters  were designed to work with several different
versions of LPD servers.  Thus,  they have a wide range of options and
configurations.  One of the most confusing is the way that banner
printing is done.  Here is a brief review. In addition, the various
banner formats produced by banner are covered.



By default, the ifhp filter when used as an OF filter will interpret the first line to it as a short banner line, and use the
information on this line to produce a PCL based banner. The short banner line should have the format: 

class:username Job: jobinfo Date: dateformat

Example:
  A:papowell Job: (stdin) Date: Sun Dec 14 07:13:34 PST 1997

This is produced by the default short banner line option value: 

bl=$-'C:$-'n Job: $-'J Date: $-'t

If you want to suppress banner printing, then you need to suppress
generation of this short banner line. If you want to have the lpd
program to generate the default long special banner, then you need
to suppress ifhp from interpreting the information sent to is as
banner information. Finally, you may want to have lpd invoke the
bp (banner program) and have its output used as the banner. Here
are the various possible ways:

# no banner at all, use :sh: - suppress headers
lp:....
  :sh
  :of=/usr/local/lib/filters/ifhp

# have ifhp generate banner from short banner input
lp:....
  :sb
  :of=/usr/local/lib/filters/ifhp

# have LPD generate long banner, have of filter pass it
lp:...
  :sb@
  :of=/usr/local/lib/filters/ifhp -Tbanner=off

# have LPD invoke bp banner generation program, have of filter pass it
# bp programs require short banner on STDIN to work, so we need to
# generate short banner
lp:...
  :sb
  :bp=/usr/local/lib/filters/banner_program
  :of=/usr/local/lib/filters/ifhp -Tbanner=off


Since when you send a banner to an autosensing printer you cause
it to enter the requested mode,  the if filter (ifhp) will need to
reset the printer to autosense mode.  The ifhp filter automatically
does this.

If you want to have much more fancy banners,  then I recommend that
you examine the banner printing script banner.sh and psbanner.sh
scripts in the CTI-ifhp distribution.  These can generate PCL or
PostScript banner pages, which can be sent to the printer using
'ofhp' in passthrough mode.