Re: How to read arrow key input in the ANSI way?



"Paramesh" <cegparamesh@xxxxxxxxx> wrote in message
news:1131089647.590333.227480@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> Thank you for your replys.
>
> Is there any possibility that we could write our own code to get a
> keypress event?
>
> i.e can we write a similar getch() function in the ANSI way?

I am surprised no one has said this yet, but you might find more help on
a newsgroup about your Operating System or Compiler type. Each OS would
do this a different way, for instance DOS might require a SIGINT or
something (I seem to recall handling the mouse used an int86() call),
whereas Windows would return an event to your program that you can
handle. They are completely different animals.

--
Mabden


.