[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How to install Perl with readline support?



On 3/12/16, David Christensen <dpchrist@holgerdanske.com> wrote:
> If I install:
>
>      libterm-readline-perl-perl
>
>
> And run the example again:
>
>      $ perl readline.pl
>
>      Enter your arithmetic expression: 1+1
>      2
>
>      Enter your arithmetic expression: 1+1
>      2
>
>      Enter your arithmetic expression:
>
>
> History works, but there are extra blank lines between prompts and my
> terminal can get stuck in bold mode depending on how I exit (?).

Thanks.

What happens when you run

    % perl -de 0

    Loading DB routines from perl5db.pl version 1.44
    Editor support available.

    Enter h or 'h h' for help, or 'man perldebug' for more help.

    main::(-e:1):	0
      DB<1> p 1
    1
      DB<2>

...and then type UP-ARROW?

(When I do this, I get `^[[A`, and I also have installed
libterm-readline-perl-perl.)

kj


Reply to: