Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!ukc!tcdcs!swift.cs.tcd.ie!ccvax.ucd.ie!pabruton From: pabruton@ccvax.ucd.ie (Paul Bruton, Geophysics, University College Galway) Newsgroups: comp.lang.fortran Subject: Re: How to get prompt and get input on _same_ line? Message-ID: <47987.27d90af9@ccvax.ucd.ie> Date: 9 Mar 91 16:19:05 GMT References: Organization: University College Dublin Lines: 20 In article , djr666@coombs.anu.edu.au (OzFuzzy) writes: > iHi there, > I am trying to write a BBS in Fortran, (no dont laugh! On Cybers, > Fortran has the best system <=> language interface), and to make my program > look okay, I would like to have a prompt of varying lengths (no longer than > 20 characters tho) and then get input from that _same_ line. > Any suggestions? > > I would prefer portable code, ie standard F77 if possible, but pointers > are welcome. > > Andrew Vanderstock. I have used the following code sucessfully under VMS Fortran: PRINT '(a9)','$Prompt> ' followed by a read statement as normal. Dunno if this is standard though. Paul B-)