comp.lang.ada
 help / color / mirror / Atom feed
From: "Newtelco News" <shark@infomaniak.ch.net>
Subject: TEXT_IO, How can I clear the In buffer?
Date: 1998/01/25
Date: 1998-01-25T00:00:00+00:00	[thread overview]
Message-ID: <6aku86$jv7@svgotcha.ubs.net> (raw)

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1056 bytes --]


Hi,

I'm a beginner in Ada my progs should run either on PC (Windows 95, Gnat
3.10, ANSI.SYS loaded) and Sun Workstations (Solaris, Gnat compiler).

My problem is the following: when I use Get_Imediate(Standard_Input,
Identifier), in order to get a character form the user, the character stay
in the In Buffer, it has no effect in Xterm, but in my DOS windows, when I
use a put and get instruction, the previous character is writen on the line.
I tried to use Skip_Line(Standard_Input), but I must press the return touch
(End_Of_Line), in order to continue the execution of my prog.

So I'm wondering, if there is a method to clear the In_Buffer.

I would appreciate an e-mail during the week at: crathgeb@dico.epfl.ch.net
(remove the ".net" to reply)
or during the weekend at: shark@infomaniak.ch.net (remove the ".net" to
reply)

Et si la r�ponse est en fran�ais c'est encore mieux ;-)

____________________________________
C�dric
shark@infomaniak.ch.net (remove the ".net" to reply)
EPFL - Switzerland
____________________________________








                 reply	other threads:[~1998-01-25  0:00 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox