Think about Loose Coupling | |
PerlMonks |
Re: Term::ReadKey under win32by Dog and Pony (Priest) |
on Apr 07, 2002 at 11:53 UTC ( [id://157262]=note: print w/replies, xml ) | Need Help?? |
Sadly, I have no Windows box to try this on here. But you might want to try to set other ReadModes, such as "ultra-raw". Windows has some differences as to how it sends its enter command, and looking at the docs, it sounds like changing ReadMode might just do it. Just remember that Windows is actually sending two "numbers" (13 and 10) for every enter.
Like I said, couldn't test it. But it may be worth a try. :) Update: Sorry that I forgot to mention this. Yes, your code works as expected on linux. It says "Key is 10" when I press enter, then moves on, just like it should. You have moved into a dark place. It is pitch black. You are likely to be eaten by a grue.
In Section
Seekers of Perl Wisdom
|
|