2015-03-22 16:43:59 -04:00
|
|
|
.Dd March 22, 2014
|
2015-03-07 07:56:13 -05:00
|
|
|
.Dt COL 1
|
|
|
|
.Os sbase
|
|
|
|
.Sh NAME
|
|
|
|
.Nm col
|
|
|
|
.Nd filter reverse line-feeds
|
|
|
|
.Sh SYPNOSIS
|
|
|
|
.Nm
|
|
|
|
.Op Fl bfpx
|
|
|
|
.Op Fl l Ar num
|
|
|
|
.Sh DESCRIPTION
|
|
|
|
.Nm
|
2015-03-22 16:43:59 -04:00
|
|
|
filters all reverse (and half reverse) line feeds,
|
|
|
|
as produced by
|
2015-03-07 07:56:13 -05:00
|
|
|
.Xr nroff 1
|
2015-03-22 16:43:59 -04:00
|
|
|
with .2C,
|
2015-03-07 07:56:13 -05:00
|
|
|
.Xr ms 6
|
2015-03-22 16:43:59 -04:00
|
|
|
or
|
2015-03-07 07:56:13 -05:00
|
|
|
.Xr tbl 1 .
|
2015-03-22 16:43:59 -04:00
|
|
|
The recognized control sequences are:
|
2015-03-07 07:56:13 -05:00
|
|
|
.Bl -tag -width Ds
|
|
|
|
.It ESC-7
|
|
|
|
Reverse line-feed
|
|
|
|
.It ESC-8
|
|
|
|
Reverse half-line-feed
|
|
|
|
.It ESC-9
|
|
|
|
Forward half-line-feed
|
|
|
|
.It VT
|
|
|
|
Vertical-tab
|
|
|
|
.It SP
|
2015-03-03 04:52:34 -05:00
|
|
|
Space
|
2015-03-07 07:56:13 -05:00
|
|
|
.It TAB
|
|
|
|
Horizontal tab
|
|
|
|
.It RETURN
|
2015-03-03 04:52:34 -05:00
|
|
|
Carriage return
|
2015-03-07 07:56:13 -05:00
|
|
|
.It NL
|
2015-03-03 04:52:34 -05:00
|
|
|
New line
|
2015-03-07 07:56:13 -05:00
|
|
|
.El
|
|
|
|
.Pp
|
2015-03-22 16:43:59 -04:00
|
|
|
All other control codes and escape sequences are removed.
|
2015-03-07 07:56:13 -05:00
|
|
|
.Nm
|
2015-03-22 16:43:59 -04:00
|
|
|
converts all spaces to tabs.
|
2015-03-07 07:56:13 -05:00
|
|
|
.Sh OPTIONS
|
|
|
|
.Bl -tag -width Ds
|
|
|
|
.It Fl p
|
2015-03-22 16:43:59 -04:00
|
|
|
Print unknown escape sequences.
|
2015-03-07 07:56:13 -05:00
|
|
|
.It Fl b
|
2015-03-22 16:43:59 -04:00
|
|
|
Do not print backspaces and instead only print the last
|
|
|
|
character written to each column position.
|
2015-03-07 07:56:13 -05:00
|
|
|
.It Fl f
|
2015-03-03 04:52:34 -05:00
|
|
|
Allow forward half line feeds in the output.
|
2015-03-07 07:56:13 -05:00
|
|
|
.It Fl x
|
2015-03-22 16:43:59 -04:00
|
|
|
Do not convert spaces to tabs.
|
2015-03-07 07:56:13 -05:00
|
|
|
.It Fl l Ar num
|
2015-03-22 16:43:59 -04:00
|
|
|
Buffer
|
2015-03-07 07:56:13 -05:00
|
|
|
.Ar num
|
2015-03-30 15:48:26 -04:00
|
|
|
lines in memory. By default, 128 lines are buffered.
|
2015-03-07 07:56:13 -05:00
|
|
|
.El
|
|
|
|
.Sh SEE ALSO
|
|
|
|
.Xr nroff 1 ,
|
|
|
|
.Xr tbl 1 ,
|
|
|
|
.Xr ms 6
|
|
|
|
.Sh BUGS
|
|
|
|
.Nm
|
2015-03-30 15:48:26 -04:00
|
|
|
only buffers up to 128 lines with up to 800 bytes per line
|
2015-03-22 16:43:59 -04:00
|
|
|
if the line-number hasn't been set differently with the
|
|
|
|
.Op Fl l
|
|
|
|
flag.
|
|
|
|
When the number of lines is bigger, the buffer is flushed and
|
|
|
|
reverse line feeds can not operate on the flushed lines.
|