stdio.h defines BUFSIZ
[unix-history] / usr / src / usr.bin / colcrt / colcrt.1
CommitLineData
b5dc1377 1.\" Copyright (c) 1980, 1990 The Regents of the University of California.
297a0a40 2.\" All rights reserved.
d5baed0e 3.\"
b5dc1377 4.\" %sccs.include.redist.man%
297a0a40 5.\"
5325ced3 6.\" @(#)colcrt.1 6.6 (Berkeley) %G%
d5baed0e 7.\"
b5dc1377
CL
8.Dd
9.Dt COLCRT 1
10.OS BSD 3
11.Sh NAME
12.Nm colcrt
13.Nd filter nroff output for CRT previewing
14.Sh SYNOPSIS
15.Nm colcrt
16.Op Fl
5325ced3 17.Op Fl \&2
b5dc1377
CL
18.Ar
19.Sh DESCRIPTION
20.Nm Colcrt
d5baed0e
KM
21provides virtual half-line and reverse line feed sequences
22for terminals without such capability, and on which overstriking
23is destructive.
24Half-line characters and underlining (changed to dashing `\-')
25are placed on new lines in between the normal output lines.
b5dc1377 26.Pp
5325ced3 27.Tw Ds
b5dc1377
CL
28.Tp Fl
29Suppress all underlining.
d5baed0e 30It is especially useful for previewing
b5dc1377 31.Ar allboxed
d5baed0e 32tables from
b5dc1377
CL
33.Xr tbl 1 .
34.Pp
35.Tp Fl 2
36Causes all half-lines to be printed, effectively double spacing the output.
d5baed0e
KM
37Normally, a minimal space output format is used which will suppress empty
38lines.
39The program never suppresses two consecutive empty lines, however.
40The
b5dc1377 41.Fl 2
d5baed0e
KM
42option is useful for sending output to the line printer when the output
43contains superscripts and subscripts which would otherwise be invisible.
b5dc1377
CL
44.Tp
45.Pp
d5baed0e 46A typical use of
b5dc1377 47.Nm colcrt
d5baed0e 48would be
b5dc1377 49.Pp
5325ced3 50.Dl tbl exum2.n \&| nroff \-ms \&| colcrt \- \&| more
b5dc1377
CL
51.Sh SEE ALSO
52.Xr nroff 1 ,
53.Xr troff 1 ,
54.Xr col 1 ,
55.Xr more 1 ,
56.Xr ul 1
57.Sh HISTORY
58Appeared in 3 BSD.
59.Sh BUGS
d5baed0e 60Should fold underlines onto blanks even with the
5325ced3 61.Sq Fl
d5baed0e
KM
62option so that
63a true underline character would show; if we did this, however,
b5dc1377 64.Nm colcrt
d5baed0e 65wouldn't get rid of
b5dc1377 66.Ar cu'd
d5baed0e
KM
67underlining
68completely.
b5dc1377 69.Pp
d5baed0e 70Can't back up more than 102 lines.
b5dc1377 71.Pp
d5baed0e 72General overstriking is lost;
922fc8ba 73as a special case `\&|' overstruck with `\-' or underline becomes `+'.
b5dc1377 74.Pp
d5baed0e 75Lines are trimmed to 132 characters.
b5dc1377 76.Pp
d5baed0e
KM
77Some provision should be made for processing superscripts and subscripts
78in documents which are already double-spaced.