http://qs1969.pair.com?node_id=480830


in reply to Installing Perl Modules on a PC?

I had to do this today (new laptop running XP rather than Win 2000). Previously I had a 5.6 but I decided to move up to 5.8. What I found was that I needed to also set an environment variable to get Term::ReadKey to work for me. I set TERM to dumb in the System control panel and everything seems to be working again.

Replies are listed 'Best First'.
Re^2: Installing Perl Modules on a PC?
by gellyfish (Monsignor) on Aug 04, 2005 at 14:23 UTC

    I'd be surprised by this, Term::ReadKey itself does not reference $ENV{TERM} at all and uses a lower level device interface (POSIX termios mostly, but the Console interface on windows) that doesn't need to know what the terminal type is, particularly on Windows where there is no real notion of varying terminal types. I can only assume that you are also using some other module that does care about the terminal type.

    Of course if you are convinced of this I would love for you to send me some test code that demonstrates this so I can work out what is going on and fix it.

    /J\