in reply to IBM scan codes (pgup, pgdn, arrow keys)

This is going back many, many years, but as I remember from my old Turbo Pascal days...

When a key is pressed, you're going to need to check for an escape key, do an immediate readkey and process that key.

If one of those special keys is pressed it sends the escape key followed by the key you pressed. This is only true for ascii codes above 127 I believe.

Hope that helps! ( And if I'm wrong, someone will correct me...)

Some people fall from grace. I prefer a running start...

  • Comment on Re: IBM scan codes (pgup, pgdn, arrow keys)