ASA(1)
π ASA(1) β asa, bestie π
okay so this is asa(1) from the User Contributed Perl Documentation section, and it's literally the carriag-control decoder of your dreams β¨
β¨ NAME β¨
asa β interpret ASA/FORTRAN carriage-controls ππ¨
πΈ SYNOPSIS πΈ
asa [filename ...]
like, that's it. that's the whole vibe. you just hand it filenames and she goes π₯
π¦ DESCRIPTION π¦
okay so picture this: traditional FORTRAN programs put carriage-control characters in the first columns of their output π and those got interpreted by older lineprinters according to the ASA vertical format control standard β and yes, ASA was the American Standards Association, which is now ANSI, iykyk π
under this standard, the first character of each printable record (line) determines vertical spacing, like this:
blank carriage return 0 two carriage returns 1
Formfeed + overprint - three carriage returns
(IBM extension)
(read the pairs out of those columns: blank = carriage return, 0 = two carriage returns, 1 = three carriage returns, + = Formfeed, and - = overprint β that last one's the IBM extension π
)
all other characters are discarded ποΈ and empty lines behave as though they have a leading blank, periodt.
asa interprets these characters. that's the whole job. she's an icon, she's a legend, she's the main character π
π EXIT VALUES π
0β normal exit, we love a clean getaway π«Ά1β inability to write on stdout or to read an input file π2β bad argument π
these exit status values were chosen from MKS toolkit ngl π
π AUTHOR π
Jeffrey S. Haemer π«‘β¨ (we stan)
π BUGS π
okay so currently, asa just looks at the readability of its input files at startup time. it should really do it a file at a time, but that makes the code look gross π fr fr, the author said it, not me.
the carriage-control - is an IBM extension. perhaps the default should ignore it, and there should be a -i option to interpret it π (that's a maybe, bestie, not a promise)
π SEE ALSO π
- Communications of the ACM, Vol 7, No. 10, p. 606, October 1964. π
- NWG/RFC 189, Appendix C π¦
go forth and decode those carriage controls, bestie. the lineprinters believe in you πβ¨
mwah π β this has been perl v5.42.2, dated 2026-02-15, signing off for ASA(1) ππ«Ά
π¦ where this page comes from
- alpine 3.24: perl-power-tools-doc 1.053-r1 Β· GPL-2.0-or-later AND Artistic-1.0-Perl AND Artistic-2.0 AND BSD-2-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms