comp.lang.ada
 help / color / mirror / Atom feed
* Problem with 'get_immediate'
@ 1999-03-01  0:00 Josh Highley
  1999-03-02  0:00 ` David C. Hoos, Sr.
  0 siblings, 1 reply; 2+ messages in thread
From: Josh Highley @ 1999-03-01  0:00 UTC (permalink / raw)


  In several programs I'm working on, I'm using 'get_immediate' to get 
user input based on a menu.  However, the input is echoed in the 
next 'get' statement that is executed quickly after the user inputs the 
menu command.  For example:  

This is part of a menu I output to the screen:

---------------------------
L - Load and Process a File
E - Exit

Command:


-- After "Command:", I use a 'get_immediate' and then a 'put' to echo 
the user's input after "Command".  When the user enters 'L', I then 
immediately give a prompt along with a 'get_line' so the user can input 
the name of the file.  The problem is that the 'L' is also echoed after 
the prompt for the filename. So this appears on the screen without the 
user typing anything after the initial 'L':

Enter name of file: L

-- The user then has to backspace over the 'L' assuming he/she realizes 
it, and it's annoying.  Hoping, I tried removing the 'put' following 
the 'get_immediate' but it didn't help.  Is there some way I can keep 
this unwanted echo from occuring?  I am using GNAT 3.11, AdaGIDE 6.21, 
and Win95. 

Thanks for your help,

Josh Highley
joshhighley@hotmail.com





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1999-03-02  0:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-03-01  0:00 Problem with 'get_immediate' Josh Highley
1999-03-02  0:00 ` David C. Hoos, Sr.

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