pike has asked for the wisdom of the Perl Monks concerning the following question:

I recently started to use Term::ReadLine and it works great, except that the backspace key doesn't delete backwards (in fact it doesn't do anything). I have the keybinding for backspace defined in my .inputrc file, so my guess is that Term::Readline just ignores the .inputrc. Can I change that?

Oh, and BTW I still haven't found out how to make DEL delete forward and Backspace backward. I am using bash on RedHat 7.1. Does anyone know?

Thanks, pike

Replies are listed 'Best First'.
Re: Term::ReadLine ignores .inputrc
by zuqif (Hermit) on Oct 24, 2001 at 16:07 UTC
    off the top of me head, try man stty
    something like stty erase ^H
    !?
    the 'qif;
Re: Term::ReadLine ignores .inputrc
by Fletch (Bishop) on Oct 24, 2001 at 18:52 UTC

    Term::ReadLine::Perl doesn't pay attention to .inputrc files (at least I don't see it trying to do so looking through the source). Term::ReadLine::Gnu sits on top of the C readline library and probably would be more likely to honour your .inputrc.

    Update: Term::ReadLine::readline which ::Perl uses apparently does pay some attention to .inputrc files. See Re: Term::ReadLine ignores .inputrc for more information.

      Correct, Term::ReadLine::Gnu does the trick. Thanks!

      pike