Ask a Question related to PERL Modules, Design and Development.
-
Jason Mather #1
Term::ReadKey on Linux
Trying to get Term::ReadKey working.
I downloaded 2.21 from CPAN, built on RH 9 using gcc 3.2.2
and got this error in make
Checking for sgtty...
Sgtty NOT found.
The interactive test hangs on Readmode 4. Can't get out no matter
what I type, and all characters seem to get buffered until I kill
the test. Clearly not setting the tty correctly, so I
uncommented the lines in Makefile.PL
INC => "-I/usr/include/bsd",
LIBS => "-lbsd"
and rebuilt. This got rid of the sgtty error, but I still get the
same hang in test.pl. The code is below:
ReadMode 4, IN;
$k = "";
#$in = *STDIN;
$in = \*IN; # or *IN or "IN"
while($k ne "q")
{
print "Press a key, or \"q\" to stop: ";
$count=0;
#print "IN = $in\n";
$count++ while !defined($k=ReadKey(-1, $in));
#print "IN2 = $in\n";
print "\nYou pressed `",makenice($k),"' after the loop rolled over $count times\n";
}
The print never happens. Ctl-C is being trapped. Any characters typed show up on
the command line after killing the process, none seem to be read by ReadKey.
Seems to be related to the bsd ioctl calls?
Any ideas?
Jason Mather Guest
-
Life term for PDF
It is possible in Acrobat Professional give a life term to a pdf in order to avoid have designs living forver in other computers? -
Question about Term::ANSIMenu
Hi all, is there a way to let Term::ANSIMenu scroll a list of selectable items if it is larger than the screen? thanks for any information ... -
$TERM not set via xinetd
Hi, I have been experimenting with xinetd as an inetd replacement on HP-UX. It works great and as expect with everything so far except this one... -
Adobe Pro 6 & Win 2K Term Server
OK, we had Adobe Pro installed and working fine for days...all of a sudden, we had a problem that prompted me to reinstall Reader on top of Pro.... -
What is the term for this?
cpliu wrote: Prolonged press to bring up a menu doesn't really have one, as the standard on Mac is generally to control-click or right-click...



Reply With Quote

