comp.lang.ada
 help / color / mirror / Atom feed
* TEXT_IO, How can I clear the In buffer?
@ 1998-01-25  0:00 Newtelco News
  0 siblings, 0 replies; only message in thread
From: Newtelco News @ 1998-01-25  0:00 UTC (permalink / 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
____________________________________








^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1998-01-25  0:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-01-25  0:00 TEXT_IO, How can I clear the In buffer? Newtelco News

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