2015-03-22 20:43:59 +00:00
|
|
|
.Dd March 22, 2014
|
2015-03-07 12:56:13 +00: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 20:43:59 +00:00
|
|
|
filters all reverse (and half reverse) line feeds,
|
|
|
|
as produced by
|
2015-03-07 12:56:13 +00:00
|
|
|
.Xr nroff 1
|
2015-03-22 20:43:59 +00:00
|
|
|
with .2C,
|
2015-03-07 12:56:13 +00:00
|
|
|
.Xr ms 6
|
2015-03-22 20:43:59 +00:00
|
|
|
or
|
2015-03-07 12:56:13 +00:00
|
|
|
.Xr tbl 1 .
|
2015-03-22 20:43:59 +00:00
|
|
|
The recognized control sequences are:
|
2015-03-07 12:56:13 +00: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 09:52:34 +00:00
|
|
|
Space
|
2015-03-07 12:56:13 +00:00
|
|
|
.It TAB
|
|
|
|
Horizontal tab
|
|
|
|
.It RETURN
|
2015-03-03 09:52:34 +00:00
|
|
|
Carriage return
|
2015-03-07 12:56:13 +00:00
|
|
|
.It NL
|
2015-03-03 09:52:34 +00:00
|
|
|
New line
|
2015-03-07 12:56:13 +00:00
|
|
|
.El
|
|
|
|
.Pp
|
2015-03-22 20:43:59 +00:00
|
|
|
All other control codes and escape sequences are removed.
|
2015-03-07 12:56:13 +00:00
|
|
|
.Nm
|
2015-03-22 20:43:59 +00:00
|
|
|
converts all spaces to tabs.
|
2015-03-07 12:56:13 +00:00
|
|
|
.Sh OPTIONS
|
|
|
|
.Bl -tag -width Ds
|
|
|
|
.It Fl p
|
2015-03-22 20:43:59 +00:00
|
|
|
Print unknown escape sequences.
|
2015-03-07 12:56:13 +00:00
|
|
|
.It Fl b
|
2015-03-22 20:43:59 +00:00
|
|
|
Do not print backspaces and instead only print the last
|
|
|
|
character written to each column position.
|
2015-03-07 12:56:13 +00:00
|
|
|
.It Fl f
|
2015-03-03 09:52:34 +00:00
|
|
|
Allow forward half line feeds in the output.
|
2015-03-07 12:56:13 +00:00
|
|
|
.It Fl x
|
2015-03-22 20:43:59 +00:00
|
|
|
Do not convert spaces to tabs.
|
2015-03-07 12:56:13 +00:00
|
|
|
.It Fl l Ar num
|
2015-03-22 20:43:59 +00:00
|
|
|
Buffer
|
2015-03-07 12:56:13 +00:00
|
|
|
.Ar num
|
2015-03-22 20:43:59 +00:00
|
|
|
lines in memory.
|
2015-03-07 12:56:13 +00:00
|
|
|
.El
|
|
|
|
.Sh SEE ALSO
|
|
|
|
.Xr nroff 1 ,
|
|
|
|
.Xr tbl 1 ,
|
|
|
|
.Xr ms 6
|
|
|
|
.Sh BUGS
|
|
|
|
.Nm
|
2015-03-22 20:43:59 +00:00
|
|
|
only buffers up to 256 lines with up to 800 bytes per line
|
|
|
|
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.
|