From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=BAYES_00,INVALID_DATE autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,a2e3a2c542746445 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 1994-09-07 22:10:55 PST Path: nntp.gmd.de!newsserver.jvnc.net!nntpserver.pppl.gov!princeton!rutgers!sgigate.sgi.com!sgiblab!spool.mu.edu!howland.reston.ans.net!EU.net!Austria.EU.net!newsfeed.ACO.net!paladin.american.edu!auvm!J64.STRATCOM.AF.MIL!BennettC Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU Newsgroups: comp.lang.ada Encoding: 35 TEXT X-Mailer: Microsoft Mail V3.0 Message-ID: <2E6CAE51@SMTPGATE2.STRATCOM.AF.MIL> Date: Tue, 6 Sep 1994 10:52:00 PDT Sender: Ada programming language From: "Bennett, Chip (KTR) ~U" Subject: Re: Output to screen without new_line.. Comments: To: info-ada Date: 1994-09-06T10:52:00-07:00 List-Id: Ross Irvine writes: > I would like to know on a VAX/VMS 6.1 platform, how flush the output buffer.. > > Eg.. > > text_io.put("Enter Name : "); > text_io.get(name); > > the problem is "Enter name : " will not be displayed to the screen without > doing a new_line after it. This would screw up the screen outlay, so I > need a way of flushing the buffer after a put statement. In Meridian DOS > ada there is spio.flush that will do it, but I have yet to find out a way > to do this on a VAX system.. > Could you please e-mail me any responses as I need this for an assignment.. When I run your example in Meridian DOS Ada, I don't need a flush. My experience is that when dealing with standard IO, whether from Ada, or C, a "get" from the standard IN channel flushes the standard OUT channel as a matter of course. Is this not true on under VMS? I also tried this using VADS on a Sun, and Intermetrics under MVS. It worked properly in both cases. If this doesn't work in VMS, I suspect a bug! (Oh no!) ;-) ***************************************************************** * Chip Bennett | BennettC@j64.stratcom.af.mil * * USSTRATCOM/J64213 | Voice (402)294-7360 * * 901 SAC Blvd, Suite 2B24 | FAX (402)294-7912 * * Offutt AFB, NE 68113-6600 | * *****************************************************************