Annotation of src/usr.bin/asa/asa.1, Revision 1.10
1.10 ! deraadt 1: .\" $OpenBSD: asa.1,v 1.9 2000/03/23 21:10:12 aaron Exp $
1.1 deraadt 2: .\" $NetBSD: asa.1,v 1.4 1995/03/26 02:25:05 glass Exp $
3: .\"
4: .\" Copyright (c) 1993 Winning Strategies, Inc.
5: .\" All rights reserved.
6: .\"
7: .\" Redistribution and use in source and binary forms, with or without
8: .\" modification, are permitted provided that the following conditions
9: .\" are met:
10: .\" 1. Redistributions of source code must retain the above copyright
11: .\" notice, this list of conditions and the following disclaimer.
12: .\" 2. Redistributions in binary form must reproduce the above copyright
13: .\" notice, this list of conditions and the following disclaimer in the
14: .\" documentation and/or other materials provided with the distribution.
15: .\" 3. All advertising materials mentioning features or use of this software
16: .\" must display the following acknowledgement:
17: .\" This product includes software developed by Winning Strategies, Inc.
18: .\" 4. The name of the author may not be used to endorse or promote products
19: .\" derived from this software without specific prior written permission
20: .\"
21: .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
22: .\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
23: .\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
24: .\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
25: .\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
26: .\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27: .\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28: .\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29: .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
30: .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31: .\"
32: .Dd September 23, 1993
33: .Dt ASA 1
34: .Os
35: .Sh NAME
1.3 etheisen 36: .Nm asa ,
37: .Nm fpr
1.6 aaron 38: .Nd interpret carriage-control characters
1.1 deraadt 39: .Sh SYNOPSIS
1.5 aaron 40: .Nm asa
41: .Op Ar
42: .Nm fpr
1.1 deraadt 43: .Op Ar
44: .Sh DESCRIPTION
45: The
46: .Nm
47: utility reads files sequentially, mapping
48: .Tn FORTRAN
49: carriage-control characters to line-printer control sequences,
50: and writes them to the standard output.
51: .Pp
52: The first character of each line is interpreted as a carriage-control
1.8 aaron 53: character.
54: Additionally, the following characters are interpreted as shown:
1.1 deraadt 55: .Bl -tag -width indent
56: .It <space>
57: Output the rest of the line without change.
58: .It 0
1.5 aaron 59: Output a newline
60: .Pq Sq \en
61: character before printing the rest of the line.
1.1 deraadt 62: .It 1
63: Output a <formfeed> character before printing the rest of the line.
64: .It +
1.5 aaron 65: The trailing newline
66: .Pq Sq \en
67: of the previous line is replaced by a carriage-return
68: .Pq Sq \er
1.1 deraadt 69: before printing the rest of the line.
70: .El
71: .Pp
72: Lines beginning with characters other than the above are treated as if they
1.5 aaron 73: begin with a space
1.9 aaron 74: .Pq Sq \ .
1.8 aaron 75: .Pp
76: The
77: .Nm
78: utility exits 0 on success or >0 if an error occurred.
1.1 deraadt 79: .Sh EXAMPLES
80: To view a file containing the output of a
81: .Tn FORTRAN program:
1.8 aaron 82: .Pp
1.10 ! deraadt 83: .Dl $ asa file
1.1 deraadt 84: .Pp
85: To format the output of a
86: .Tn FORTRAN
87: program and redirect it to a line-printer.
1.8 aaron 88: .Pp
1.10 ! deraadt 89: .Dl $ a.out | asa | lpr
1.1 deraadt 90: .Sh SEE ALSO
91: .Xr f77 1
92: .Sh STANDARDS
93: The
1.7 aaron 94: .Nm
1.1 deraadt 95: utility conforms to
96: .St -p1003.2-92 .
1.3 etheisen 97: The
98: .Nm fpr
1.4 aaron 99: utility is deprecated and its use should be restricted.
1.1 deraadt 100: .Sh AUTHORS
101: J.T. Conklin, Winning Strategies, Inc.