Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!cs.utexas.edu!uunet!ns-mx!iowasp.physics.uiowa.edu!maverick.ksu.ksu.edu!ux1.cso.uiuc.edu!aries!mcdonald From: mcdonald@aries.scs.uiuc.edu (Doug McDonald) Newsgroups: comp.unix.questions Subject: Keywords: Fortran Message-ID: <1990Aug5.192922.20989@ux1.cso.uiuc.edu> Date: 5 Aug 90 19:29:22 GMT Sender: usenet@ux1.cso.uiuc.edu (News) Reply-To: mcdonald@aries.scs.uiuc.edu (Doug McDonald) Organization: School of Chemical Sciences, Univ. of Illinois at Urbana-Champaign Lines: 22 I am having a problem with Fortran under Unix, to be specific, the f77 compiler that comes for a Mips 120. I need to have a prompt on one line with the user's typed input on the same line. In VMS Fortran, and all the Fortrans I have on my IBM PC, using the following works: write(*,100) 100 format(/,' >',$) read(*,101)a 101 format(70a1) The $ is not a standard F77 feature. Yet it IS documented to do what I want in the Mips Fortran manual. It doesn't work: I have to type two carriage returns to get input, which comes in wrong. How does one do this in Mips Fortran, or in general on common Unix Fortrans. P.S. This may or may not matter - I am logged in over a Telnet connection. The world and comp.sources.games is anxiously awaiting an answer :-) Doug McDonald (mcdonald@aries.scs.uiuc.edu)