Fortran carriage-control grew out of the limited capabilities of the equipment used when Fortran was originally developed. For similar historical reasons, operating systems derived from the UNIX do not have Fortran carriage control, but you can simulate it with the Fortran 95 compiler in two ways.
Use the asa filter to transform Fortran carriage-control conventions into the UNIX carriage-control format (see the asa (1) man page) before printing files with the lpr command.
The FORTRAN 77 compiler f77 allowed OPEN(N, FORM=’PRINT’) to enable single or double spacing, formfeed, and stripping of column one. This is still available by compiling programs using FORM=’PRINT’with the f95 -f77 compatibility flag. The compiler allows you to reopen unit 6 to change the form parameter to PRINT, when compiling with -f77. For example:
OPEN( 6, FORM=’PRINT’) |
You can use lp(1) to print a file that is opened in this manner.