* Keyboard manipulation
@ 1999-10-18 0:00 Eric poirier
1999-10-19 0:00 ` Ted Dennison
1999-10-19 0:00 ` Gautier
0 siblings, 2 replies; 4+ messages in thread
From: Eric poirier @ 1999-10-18 0:00 UTC (permalink / raw)
Hello !!!
I'm pretty new to ADA and to this Newsgroup. I have a quite easy
question: I know that is possible to get a character with the
Ada.Text_io.Get_Immediate command, that take the carcater without the
'return' . Okay ! Now, I'd like to know how to get the arrays caracters
(left, right, up, down) of the keyboard...
It takes... I don't know what ...
I also know that I can use the Ada.Text_io.Put ( ASCII.XXX ) to put on
the screen, I now need to know how to compare with the character I've
got with the Get_Immediate before ...
Thanks
Eric Poirier,
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Keyboard manipulation
1999-10-18 0:00 Keyboard manipulation Eric poirier
@ 1999-10-19 0:00 ` Ted Dennison
1999-10-19 0:00 ` Gautier
1 sibling, 0 replies; 4+ messages in thread
From: Ted Dennison @ 1999-10-19 0:00 UTC (permalink / raw)
In article <380BAAA3.10777669@algopharm.com>,
Eric poirier <computer@algopharm.com> wrote:
> I'm pretty new to ADA and to this Newsgroup. I have a quite easy
> question: I know that is possible to get a character with the
> Ada.Text_io.Get_Immediate command, that take the carcater without the
> 'return' . Okay ! Now, I'd like to know how to get the arrays
caracters
> (left, right, up, down) of the keyboard...
That depends on the platform and OS you are using. You may be able to
reverse-engineer it for your system by writing a little program to
output the results of a Get_Immediate. But don't expect those results to
be valid for another OS or hardware platform.
Many OS's have a high-level way to get at your special keyboard keys,
but those will be OS calls, not Ada calls.
> the screen, I now need to know how to compare with the character I've
> got with the Get_Immediate before ...
Is something wrong with "="?
--
T.E.D.
Sent via Deja.com http://www.deja.com/
Before you buy.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Keyboard manipulation
1999-10-18 0:00 Keyboard manipulation Eric poirier
1999-10-19 0:00 ` Ted Dennison
@ 1999-10-19 0:00 ` Gautier
1999-10-22 0:00 ` Eric poirier
1 sibling, 1 reply; 4+ messages in thread
From: Gautier @ 1999-10-19 0:00 UTC (permalink / raw)
> I'm pretty new to ADA and to this Newsgroup. I have a quite easy
> question: I know that is possible to get a character with the
> Ada.Text_io.Get_Immediate command, that take the carcater without the
> 'return' . Okay ! Now, I'd like to know how to get the arrays caracters
> (left, right, up, down) of the keyboard...
> It takes... I don't know what ...
Which platform, OS ? On PC there are pairs ASCII.NUL & 'H' etc. for
special keys (according to the OS)... To test it you can
make a loop that displays the ASCII code of Ada.Text_io.Get_Immediate
via character'pos(...). It could tell things...
--
Gautier
_____\\________________\_______\
http://members.xoom.com/gdemont/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Keyboard manipulation
1999-10-19 0:00 ` Gautier
@ 1999-10-22 0:00 ` Eric poirier
0 siblings, 0 replies; 4+ messages in thread
From: Eric poirier @ 1999-10-22 0:00 UTC (permalink / raw)
Gautier wrote:
> > I'm pretty new to ADA and to this Newsgroup. I have a quite easy
> > question: I know that is possible to get a character with the
> > Ada.Text_io.Get_Immediate command, that take the carcater without the
> > 'return' . Okay ! Now, I'd like to know how to get the arrays caracters
> > (left, right, up, down) of the keyboard...
> > It takes... I don't know what ...
>
> Which platform, OS ? On PC there are pairs ASCII.NUL & 'H' etc. for
> special keys (according to the OS)... To test it you can
> make a loop that displays the ASCII code of Ada.Text_io.Get_Immediate
> via character'pos(...). It could tell things...
>
> --
> Gautier
>
> _____\\________________\_______\
> http://members.xoom.com/gdemont/
Thanks !!! I'll try that !!!
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~1999-10-22 0:00 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-10-18 0:00 Keyboard manipulation Eric poirier
1999-10-19 0:00 ` Ted Dennison
1999-10-19 0:00 ` Gautier
1999-10-22 0:00 ` Eric poirier
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox