1 # PSPP's standard output drivers.
3 # An introduction to the use of PSPP output drivers and this file
4 # follows. However, refer to PSPP's Texinfo documentation for full
7 # Each output driver specification must be on a single line; however,
8 # lines may be spliced with a \ at the end of a line. Line splicing
9 # is performed *before* comments (introduced by `#') are removed.
11 # Format is `DRIVERNAME:CLASSNAME:DEVICETYPE:OPTIONS'.
13 # DRIVERNAME is the name that identifies the driver to the user. It
14 # is the name used on the -o command-line option.
16 # CLASSNAME is the internal name of the type of driver. Device
17 # classes can be listed with `pspp -l'.
19 # DEVICETYPE identifies what type or types the devices is. Zero or
20 # more of the following keywords may be given here: screen, printer,
23 # OPTIONS is a list of key/value pairs to pass to the driver. Use
24 # spaces to separate pairs, and '=' to separate keys and values.
25 # Quotes " or ' can be used to delimit values that contain spaces.
26 # Example: paper-size="Envelope #10" charset=latin1
28 # Driver categories may be defined with lines of the form:
30 # category=driver1 driver2 driver3 ... driverN
32 # To disable a driver, define a category with nothing on the right
35 # Macros may be defined with lines of the form:
37 # define macro-name definition
39 # Macros may not be recursive; they may not take arguments. (However,
40 # `definition' is macro-expanded *at time of definition*.) Macros are
41 # referenced with $var or ${var} syntax; the latter is preferred.
49 define tty-output-file "/dev/tty"
50 define list-output-file "pspp.list"
52 # Generic ASCII devices
53 tty-ascii:ascii:screen:output-file=${tty-output-file}
54 list-ascii:ascii:listing:length=66 width=79 output-file=${list-output-file}
55 raw-ascii:ascii:screen:width=9999 length=9999 output-file=${list-output-file} \
56 emphasis=none headers=off paginate=off squeeze=on \
57 top-margin=0 bottom-margin=0
59 # ASCII devices that support bold & underline via backspacing.
60 tty-ascii-bi:ascii:screen:output-file=${tty-output-file}
61 list-ascii-bi:ascii:listing:length=66 width=79 output-file=${list-output-file}
69 # Devices that support the IBM PC line-drawing characters.
70 define ibmpc-graphics \
71 box[0000]='\x20' box[0001]='\xb3' box[0002]='\xba' \
72 box[0010]='\xc4' box[0011]='\xd9' box[0012]='\xbd' \
73 box[0020]='\xcd' box[0021]='\xbe' box[0022]='\xbc' \
74 box[0100]='\xb3' box[0101]='\xb3' box[0102]='\xc4' \
75 box[0110]='\xbf' box[0111]='\xb4' box[0112]='\xb6' \
76 box[0120]='\xb8' box[0121]='\xb5' box[0122]='\xb9' \
77 box[0200]='\xba' box[0201]='\xba' box[0202]='\xba' \
78 box[0210]='\xb7' box[0211]='\xb6' box[0212]='\xb6' \
79 box[0220]='\xbb' box[0221]='\xb9' box[0222]='\xb9' \
80 box[1000]='\xc4' box[1001]='\xc0' box[1002]='\xd3' \
81 box[1010]='\xc4' box[1011]='\xc1' box[1012]='\xd0' \
82 box[1020]='\xcd' box[1021]='\xcf' box[1022]='\xca' \
83 box[1100]='\xda' box[1101]='\xc3' box[1102]='\xc7' \
84 box[1110]='\xc2' box[1111]='\xc5' box[1112]='\xd7' \
85 box[1120]='\xd1' box[1121]='\xd8' box[1122]='\xce' \
86 box[1200]='\xd6' box[1201]='\xc7' box[1202]='\xc7' \
87 box[1210]='\xd2' box[1211]='\xd7' box[1212]='\xd7' \
88 box[1220]='\xca' box[1221]='\xce' box[1222]='\xce' \
89 box[2000]='\xcd' box[2001]='\xd4' box[2002]='\xc8' \
90 box[2010]='\xcd' box[2011]='\xcf' box[2012]='\xca' \
91 box[2020]='\xcd' box[2021]='\xcf' box[2022]='\xca' \
92 box[2100]='\xd5' box[2101]='\xc6' box[2102]='\xcc' \
93 box[2110]='\xd1' box[2111]='\xd8' box[2112]='\xce' \
94 box[2120]='\xd1' box[2121]='\xd8' box[2122]='\xce' \
95 box[2200]='\xc9' box[2201]='\xcc' box[2202]='\xcc' \
96 box[2210]='\xcb' box[2211]='\xce' box[2212]='\xce' \
97 box[2220]='\xcb' box[2221]='\xce' box[2222]='\xce'
99 tty-ibmpc:ascii:screen:length=$viewlength width=$viewwidth ${ibmpc-graphics} \
100 output-file=${tty-output-file}
101 list-ibmpc:ascii:listing:length=66 width=79 output-file=${list-output-file} \