xref: /original-bsd/usr.bin/fpr/fpr.1 (revision 6ab384a1)
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.7 (Berkeley) 07/24/90
10.\"
11.Dd
12.Dt FPR 1
13.Os BSD 4.2
14.Sh NAME
15.Nm fpr
16.Nd print Fortran file
17.Sh SYNOPSIS
18.Nm fpr
19.Sh DESCRIPTION
20.Nm Fpr
21is a filter that transforms files formatted according to
22Fortran's carriage control conventions into files formatted
23according to UNIX line printer conventions.
24.Pp
25.Nm Fpr
26copies its input onto its output, replacing the carriage
27control characters with characters that will produce the intended
28effects when printed using
29.Xr lpr  1  .
30The first character of each line determines the vertical spacing as follows:
31.Ds I
32.Cw Character
33.Cl Blank	One line
34.Pp
35.Cl 0	Two lines
36.Cl 1	To first line of next page
37.Cl +	No advance
38.Cw
39.De
40.Pp
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.
46.Sh EXAMPLES
47.Dl a.out \&| fpr \&| lpr
48.Pp
49.Dl fpr \&< f77.output \&| lpr
50.Sh HISTORY
51.Nm Fpr
52appeared in 4.2 BSD.
53.Sh BUGS
54Results are undefined for input lines longer than 170 characters.
55