Annotation of src/usr.bin/asa/asa.1, Revision 1.5
1.5 ! aaron 1: .\" $OpenBSD: asa.1,v 1.4 1998/09/07 16:44:33 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.1 deraadt 38: .Nd interpret carriage-control characters.
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.5 ! aaron 53: character. Additionally, the following characters are interpreted as shown:
1.1 deraadt 54: .Bl -tag -width indent
55: .It <space>
56: Output the rest of the line without change.
57: .It 0
1.5 ! aaron 58: Output a newline
! 59: .Pq Sq \en
! 60: character before printing the rest of the line.
1.1 deraadt 61: .It 1
62: Output a <formfeed> character before printing the rest of the line.
63: .It +
1.5 ! aaron 64: The trailing newline
! 65: .Pq Sq \en
! 66: of the previous line is replaced by a carriage-return
! 67: .Pq Sq \er
1.1 deraadt 68: before printing the rest of the line.
69: .El
70: .Pp
71: Lines beginning with characters other than the above are treated as if they
1.5 ! aaron 72: begin with a space
! 73: .Pq Sq \ .
1.1 deraadt 74: .Sh EXAMPLES
75: To view a file containing the output of a
76: .Tn FORTRAN program:
77: .Dl asa file
78: .Pp
79: To format the output of a
80: .Tn FORTRAN
81: program and redirect it to a line-printer.
82: .Dl a.out | asa | lpr
83: .Sh DIAGNOSTICS
84: The
85: .Nm
1.5 ! aaron 86: utility exits 0 on success or >0 if an error occurred.
1.1 deraadt 87: .Sh SEE ALSO
88: .Xr f77 1
89: .Sh STANDARDS
90: The
91: .Nm asa
92: utility conforms to
93: .St -p1003.2-92 .
1.3 etheisen 94: The
95: .Nm fpr
1.4 aaron 96: utility is deprecated and its use should be restricted.
1.1 deraadt 97: .Sh AUTHORS
98: J.T. Conklin, Winning Strategies, Inc.