From: wns@shell.portal.com (William David Basden)
Subject: DEC FORTRAN/terminal driver problem
Date: Fri, 25 Jun 1993 00:59:41 GMT [thread overview]
Message-ID: <C95K3J.637@unix.portal.com> (raw)
I have a problem with FORTRAN carriage control in DEC FORTRAN. In DEC
FORTRAN (under Ultrix), to get VMS style FORTRAN carriage control on a
terminal, you have to open unit 6 like this:
open(unit=6,carriagecontrol='fortran',status='old')
After doing this, DEC's run time library translates all of the
ASA carriage control information written to unit 6 into carriage
returns, line feeds, etc.
This code:
write(6,10)
write(6,10)
10 format(1x,'hello world',)
will produce:
<LF>hello world<CR><LF>hello world<CR>
which when passed through the terminal driver results in:
<CR><LF>hello world<CR><CR><LF>hello world<CR>
<CR> = carriage return
<LF> = line feed
Which should be fine, since two carriage returns in a row should
have the same effect as a single carriage return. Unfortunately,
some terminal emulators don't deal with the double carriage return
well, and you end up with double-spaced lines.
I can turn off output processing in the terminal driver to eliminate
the extra <CR>, but I want output processing for when you hit a <CR>
or <NL> to end canonical input.
Does anyone have any suggestions (other than scrapping a bazillion lines
of fortran code) on how do get rid of the extra carriage returns?
Thanks
----------------------------------------------------------------------------
Bill Basden
Warren & Selbert, Inc.
(805) 963-0776
reply other threads:[~1993-06-25 0:59 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox