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