in reply to Getting special keys to work with Term::ReadKey in Windows

Term::ReadKey doesn't return the special keys on Windows at the current time, this is because the underlying API returns 0 for those keys and the windows API expects you to look up the actual key elsewhere. I have a nearly working patch for this that will return the ANSI character sequences for the keys which should be available with the next release, but I'm not making any promises as to when this will be released. You might want to consider using instead Win32::Console which gives you the "virtual key code" for the special keys.

/J\

  • Comment on Re: Getting special keys to work with Term::ReadKey in Windows

Replies are listed 'Best First'.
Re^2: Getting special keys to work with Term::ReadKey in Windows
by Ace128 (Hermit) on Jul 21, 2006 at 12:08 UTC
    Hey, if the patch is done, release it already! :)
    Ok, what is not working with it?

    Is it possible to use Win32::Console together (in conjunction) with this Term::ReadKey you think? That is, use Win32::Console just for the special keys. The thing is, all other stuff works nice as I want. It's just these special keys that aint working, and thinking of all the code I've done I would prefer not doing it all over again, just for Win32::Console...

    Update: Seems not possible after a few testings I've made...