Annotation of src/usr.bin/fpr/fpr.1, Revision 1.2
1.2 ! deraadt 1: .\" $OpenBSD: fpr.1,v 1.3 1995/09/01 01:34:15 jtc Exp $
1.1 deraadt 2: .\" $NetBSD: fpr.1,v 1.3 1995/09/01 01:34:15 jtc Exp $
3: .\"
4: .\" Copyright (c) 1989, 1990, 1993
5: .\" The Regents of the University of California. All rights reserved.
6: .\"
7: .\" This code is derived from software contributed to Berkeley by
8: .\" Robert Corbett.
9: .\" Redistribution and use in source and binary forms, with or without
10: .\" modification, are permitted provided that the following conditions
11: .\" are met:
12: .\" 1. Redistributions of source code must retain the above copyright
13: .\" notice, this list of conditions and the following disclaimer.
14: .\" 2. Redistributions in binary form must reproduce the above copyright
15: .\" notice, this list of conditions and the following disclaimer in the
16: .\" documentation and/or other materials provided with the distribution.
17: .\" 3. All advertising materials mentioning features or use of this software
18: .\" must display the following acknowledgement:
19: .\" This product includes software developed by the University of
20: .\" California, Berkeley and its contributors.
21: .\" 4. Neither the name of the University nor the names of its contributors
22: .\" may be used to endorse or promote products derived from this software
23: .\" without specific prior written permission.
24: .\"
25: .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
26: .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
27: .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
28: .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
29: .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
30: .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
31: .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
32: .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
33: .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
34: .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
35: .\" SUCH DAMAGE.
36: .\"
37: .\" @(#)fpr.1 8.1 (Berkeley) 6/6/93
38: .\"
39: .Dd June 6, 1993
40: .Dt FPR 1
41: .Os BSD 4.2
42: .Sh NAME
43: .Nm fpr
44: .Nd print Fortran file
45: .Sh SYNOPSIS
46: .Nm fpr
47: .Sh DESCRIPTION
48: .Nm Fpr
49: is a filter that transforms files formatted according to
50: Fortran's carriage control conventions into files formatted
51: according to
52: .Ux
53: line printer conventions.
54: .Pp
55: .Nm Fpr
56: copies its input onto its output, replacing the carriage
57: control characters with characters that will produce the intended
58: effects when printed using
59: .Xr lpr 1 .
60: The first character of each line determines the vertical spacing as follows:
61: .Bd -ragged -offset indent -compact
62: .Bl -column Character
63: .It Blank One line
64: .It 0 Two lines
65: .It 1 To first line of next page
66: .It + No advance
67: .El
68: .Ed
69: .Pp
70: A blank line is treated as if its first
71: character is a blank. A blank that appears as a carriage control
72: character is deleted. A zero is changed to a newline. A one is
73: changed to a form feed. The effects of a "+" are simulated using
74: backspaces.
75: .Sh EXAMPLES
76: .Dl a.out \&| fpr \&| lpr
77: .Pp
78: .Dl fpr \&< f77.output \&| lpr
79: .Sh HISTORY
80: The
81: .Nm fpr
82: command
83: appeared in
84: .Bx 4.2 .
85: .Sh BUGS
86: Results are undefined for input lines longer than 170 characters.