Question Locked

perl Term::ReadKey equivalent

0 helpful
1 reply
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

It seems my previous post on the same question is lost... :(

Tried to accept user response from keyboard like "Press any key to continue ..." type of thing.

perl code (simplified):-

#!use/per/bin;
use Term:ReadKey;

for $i {
print "Press any key to continue: ";
ReadMode 'cbreak';
$ans=ReadKey(0);
ReadMode='normal';
}

It doesn't work. server side perl code stops after the print statement. No error though. Learned that Term::ReadKey is not working for Win32.

Any other codes I can use?

Please help, thx.

1 reply

This discussion is closed to new replies.