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