[Linux-disciples] Trapping Keystrokes That Are NOT SIGs in Perl

Chung-chieh Shan ccshan at post.harvard.edu
Sat Jul 31 14:43:29 EDT 2004


On 2004-07-30T10:41:28-0400, Adam Rosi-Kessel wrote:
> Anyone know if it's possible to trap keystrokes that are *not* signals in
> Perl?  I.e., I know how to trap a SIGINT; but what if I want to trap the
> letter "f"?

I think you want the Term::ReadKey module.

-- 
Edit this signature at http://www.digitas.harvard.edu/cgi-bin/ken/sig
"Just as Afghanistan was Russia's Vietnam, Iraq is our Vietnam, plus the actual
Vietnam which was obviously ours, which would later prove to be our
Afghanistan." -- Dan Siegler, Puni, SF Weekly 2004-05-05.
http://www.sfweekly.com/comics/puni/2004-05-05/index.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.bostoncoop.net/pipermail/linux-disciples/attachments/20040731/041f5313/attachment.pgp


More information about the Linux-disciples mailing list