From: joshhighley@hotmail.com (Josh Highley)
Subject: Problem with 'get_immediate'
Date: 1999/03/01
Date: 1999-03-01T00:00:00+00:00 [thread overview]
Message-ID: <36db1f5f.0@silver.truman.edu> (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
next reply other threads:[~1999-03-01 0:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-03-01 0:00 Josh Highley [this message]
1999-03-02 0:00 ` Problem with 'get_immediate' David C. Hoos, Sr.
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox