Path: utzoo!attcan!uunet!maverick.ksu.ksu.edu!ux1.cso.uiuc.edu!aries.scs.uiuc.edu!mcdonald From: mcdonald@aries.scs.uiuc.edu (Doug McDonald) Newsgroups: comp.sources.games.bugs Subject: Re: Adven 501 point version spews extra linefeeds (f2c). Message-ID: <1990Sep28.002909.26113@ux1.cso.uiuc.edu> Date: 28 Sep 90 00:29:09 GMT References: <159@stbimbo.UUCP> Sender: news@ux1.cso.uiuc.edu (News) Distribution: na Organization: School of Chemical Sciences, Univ. of Illinois at Urbana-Champaign Lines: 27 In article <159@stbimbo.UUCP> bgi@stbimbo.UUCP (Brad Isley) writes: >Re: The 501 pointer posted that was f2c compatible and mucho cleaned up. >I've finally managed to find the time to build this. It's on ISC 2.0.2. > >The problem is, every time the user is prompted for input, there is an >extra linefeed before and after the prompt '>'. Ex: > > blather blather text output. > > > >_ >^ - cursor. Anyone know what's happening ? I tried to wade through the >source and f2c libraries, but it looked pretty hopeless. > Yes. (I wrote it). The first linefeed is there because I thought it looked good. The code is in the text output routine - I think. Maybe. You are on you own here. It is not considered a bug. The second is there because there is no way in legal Fortran to do otherwise!!!! However, f2c will allow it. Get into the correct subroutine (it IS documented, you know, right there in the docs!!) and enable the code that puts a $ (dollar sign) format descriptor in the read statement that outputs the >. This occurs in two places. Doug McDonald