main didn't exit
[unix-history] / usr / src / usr.bin / fpr / fpr.1
CommitLineData
d9d7a9f0 1.\" Copyright (c) 1989, 1990 The Regents of the University of California.
e659a7a0 2.\" All rights reserved.
9c6b803e 3.\"
e659a7a0
KB
4.\" This code is derived from software contributed to Berkeley by
5.\" Robert Corbett.
4808ee96 6.\" %sccs.include.redist.roff%
e659a7a0 7.\"
4808ee96 8.\" @(#)fpr.1 6.9 (Berkeley) %G%
e659a7a0 9.\"
d9d7a9f0
CL
10.Dd
11.Dt FPR 1
12.Os BSD 4.2
d9d7a9f0
CL
13.Sh NAME
14.Nm fpr
15.Nd print Fortran file
16.Sh SYNOPSIS
17.Nm fpr
18.Sh DESCRIPTION
19.Nm Fpr
9c6b803e
KM
20is a filter that transforms files formatted according to
21Fortran's carriage control conventions into files formatted
4808ee96
CL
22according to
23.Ux
24line printer conventions.
d9d7a9f0
CL
25.Pp
26.Nm Fpr
9c6b803e
KM
27copies its input onto its output, replacing the carriage
28control characters with characters that will produce the intended
29effects when printed using
d9d7a9f0 30.Xr lpr 1 .
9c6b803e 31The first character of each line determines the vertical spacing as follows:
4808ee96
CL
32.Bd -ragged -offset indent -compact
33.Bl -column Character
34.It Blank One line
35.It 0 Two lines
36.It 1 To first line of next page
37.It + No advance
38.El
39.Ed
d9d7a9f0 40.Pp
9c6b803e
KM
41A blank line is treated as if its first
42character is a blank. A blank that appears as a carriage control
43character is deleted. A zero is changed to a newline. A one is
44changed to a form feed. The effects of a "+" are simulated using
45backspaces.
d9d7a9f0
CL
46.Sh EXAMPLES
47.Dl a.out \&| fpr \&| lpr
48.Pp
49.Dl fpr \&< f77.output \&| lpr
50.Sh HISTORY
4808ee96
CL
51The
52.Nm fpr
53command
54appeared in
55.Bx 4.2 .
d9d7a9f0 56.Sh BUGS
9c6b803e 57Results are undefined for input lines longer than 170 characters.