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=-1.3 required=5.0 tests=BAYES_00,FREEMAIL_FROM, INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,ebe48b4d375d0d85,start X-Google-Attributes: gid103376,public From: joshhighley@hotmail.com (Josh Highley) Subject: Problem with 'get_immediate' Date: 1999/03/01 Message-ID: <36db1f5f.0@silver.truman.edu>#1/1 X-Deja-AN: 450254789 Content-Type: Text/Plain; charset=US-ASCII Organization: Missouri Research and Education Network Mime-Version: 1.0 Newsgroups: comp.lang.ada Date: 1999-03-01T00:00:00+00:00 List-Id: 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