BSD 3 development
[unix-history] / usr / man / man1 / col.1
CommitLineData
e6817382
BJ
1.TH COL 1
2.SH NAME
3col \- filter reverse line feeds
4.SH SYNOPSIS
5.B col [\|\-bfx\|]
6.SH DESCRIPTION
7.I Col
8reads the standard input and writes the standard output.
9It performs the line overlays implied by reverse line
10feeds (ESC-7 in ASCII)
11and by forward and reverse half line feeds (ESC-9 and ESC-8).
12.I Col
13is particularly useful for filtering multicolumn
14output made with the `.rt' command of
15.I nroff
16and output resulting from use of the
17.IR tbl (1)
18preprocessor.
19.PP
20Although
21.I col
22accepts half line motions in its input, it normally does not
23emit them on output.
24Instead, text that would appear between lines is moved to the next lower
25full line boundary.
26This treatment can be suppressed by the
27.B \-f
28(fine) option; in this case
29the output from
30.I col
31may contain forward half line feeds (ESC-9), but will still never contain
32either kind of reverse line motion.
33.PP
34If the
35.B \-b
36option is given,
37.I col
38assumes that the output device in use is not capable of backspacing.
39In this case, if several characters are to appear in the same place,
40only the last one read will be taken.
41.PP
42The control characters SO (ASCII code 017),
43and SI (016) are assumed
44to start and end text in an alternate character set.
45The character set (primary or alternate) associated with each printing
46character read is remembered; on output, SO and SI characters are generated
47where necessary to maintain the correct treatment of each character.
48.PP
49.I Col
50normally converts white space to tabs to shorten printing time.
51If the
52.B \-x
53option is given, this conversion is suppressed.
54.PP
55All control characters are removed from the input except space,
56backspace,
57tab, return, newline, ESC (033) followed by one of 7, 8, 9, SI, SO, and VT
58(013).
59This last character is an alternate form of full reverse line feed, for
60compatibility with some other hardware conventions.
61All other non-printing characters are ignored.
62.SH "SEE ALSO"
63troff(1), tbl(1), greek(1)
64.SH BUGS
65Can't back up more than 128 lines.
66.br
67No more than 800 characters, including backspaces, on a line.