Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* DEC FORTRAN/terminal driver problem
@ 1993-06-25  0:59 William David Basden
  0 siblings, 0 replies; only message in thread
From: William David Basden @ 1993-06-25  0:59 UTC (permalink / 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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1993-06-25  0:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1993-06-25  0:59 DEC FORTRAN/terminal driver problem William David Basden

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox