You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am seeing ReadKey(-1) block until a key is pressed. Ideas? Thank you.
use strict;
use warnings;
use Term::ReadKey;
$|=1;
print("\nStarting ReadKey blocking test. Do not hit a key...\n");
testReadKey(1); # ReadKey times out and returns undef as expected
testReadKey(-1); # ReadKey blocks until a key is pressedprint("\nTest complete\n");
subtestReadKey {
my$readKeyArg = shift;
print("\nTesting \$key=ReadKey($readKeyArg) : ");
ReadMode(4);
my$key = ReadKey($readKeyArg);
ReadMode(0);
if(notdefined$key) {
print("\$key is undefined, test passed\n");
}
else {
print("\$key is defined, test failed\n");
}
}
The text was updated successfully, but these errors were encountered:
Hey Theemim,
This might be related to recent issue #25.
The fix for this is not yet on CPAN.
In our case the workaround is to use the older 2.30 CPAN release.
On this system:
I am seeing ReadKey(-1) block until a key is pressed. Ideas? Thank you.
The text was updated successfully, but these errors were encountered: