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,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,2940f4df889c5109 X-Google-Attributes: gid103376,public From: dis90257 Subject: Problems with Ada Get Date: 2000/04/11 Message-ID: <38F31C26.A898D10E@port.ac.uk>#1/1 X-Deja-AN: 609624117 Content-Transfer-Encoding: 7bit Organization: University of Portsmouth Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 Newsgroups: comp.lang.ada Date: 2000-04-11T00:00:00+00:00 List-Id: Please can someone help me? I am building an ADA application for my University project. It uses the Ada.Text_IO.Get command to ask the user to enter a natural number, however if the user simple pushes enter a few times the screen is pushed upwards and the display is all ruined. Is there anyway to restrict the number of numbers the user is able to type in and is it possible to trap them from pressing enter and moving the display out of line? Another problem I need help with is that I'm using the Ada.Text_IO.Get_Immediate command to function a "Press a key to continue" part of the program. The idea is that the user is prompted to push any key and the Get-Immediate command chucks away the results, however when I use an Ada.Text_IO.Get command after the Get_Immediate command, whatever key the user pressed beforehand immediately appears as something they have typed in the Ada.Text_IO.Get command. Is there anyway of stopping the Get command using the previous Get_Immediate's command's input? Any help is greatly appreciated... Rob Ayres (dis90257@port.ac.uk)