comp.lang.ada
 help / color / mirror / Atom feed
* Problems with Ada Get
@ 2000-04-11  0:00 dis90257
  2000-04-11  0:00 ` Stanley R. Allen
  0 siblings, 1 reply; 4+ messages in thread
From: dis90257 @ 2000-04-11  0:00 UTC (permalink / 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)





^ permalink raw reply	[flat|nested] 4+ messages in thread
* Problems with Ada Get
@ 2000-04-11  0:00 dis90257
  0 siblings, 0 replies; 4+ messages in thread
From: dis90257 @ 2000-04-11  0:00 UTC (permalink / 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)





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

end of thread, other threads:[~2000-04-12  0:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
  -- strict thread matches above, loose matches on Subject: below --
2000-04-11  0:00 dis90257

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