SPUG: Perl stdin backspace
BenRifkah Bergsten-Buret
benb at speakeasy.net
Thu Aug 10 12:50:06 PDT 2006
Thane Williams wrote:
> Hi there. Whenever I write a perl script in the Linux environment, if
> the user tries to backspace while entering standard input, it seems
> like none of the backspace keys work. Delete, backspace, and ctrl-H
> all fail. I've tried googling for a solution to this, but I'm at a
> loss. Can anyone tell me how to arrange things so that users can
> backspace while Perl's taking standard input?
Take a look at the Term CPAN modules: Term::ReadLine, Term::ReadKey.
Terminal key mapping can be a hassle. Make sure that the keys you want
to use when perl is accepting input are working in other applications.
-- Ben
More information about the spug-list
mailing list