From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10b612,3c2ba7b485e1afa5,start X-Google-Attributes: gid10b612,public X-Google-Thread: 1164f8,3c2ba7b485e1afa5,start X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1993-06-24 18:07:51 PST Xref: gmd.de comp.unix.ultrix:9787 comp.sys.dec:8437 Newsgroups: comp.unix.ultrix,comp.sys.dec Path: gmd.de!newsserver.jvnc.net!howland.reston.ans.net!math.ohio-state.edu!sdd.hp.com!portal!wns From: wns@shell.portal.com (William David Basden) Subject: DEC FORTRAN/terminal driver problem Message-ID: Followup-To: poster Keywords: DEC FORTRAN terminal driver gag Sender: news@unix.portal.com Nntp-Posting-Host: jobe.unix.portal.com Organization: Portal Communications Company Date: Fri, 25 Jun 1993 00:59:41 GMT 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: hello worldhello world which when passed through the terminal driver results in: hello worldhello world = carriage return = 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 , but I want output processing for when you hit a or 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