comp.lang.ada
 help / color / mirror / Atom feed
From: dis90257 <dis90257@port.ac.uk>
Subject: Problems with Ada Get
Date: 2000/04/11
Date: 2000-04-11T00:00:00+00:00	[thread overview]
Message-ID: <38F31C13.F3219ED9@port.ac.uk> (raw)

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)





             reply	other threads:[~2000-04-11  0:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-04-11  0:00 dis90257 [this message]
  -- strict thread matches above, loose matches on Subject: below --
2000-04-11  0:00 Problems with Ada Get dis90257
2000-04-11  0:00 ` Stanley R. Allen
2000-04-12  0:00   ` Ted Dennison
replies disabled

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