"joost@carnique.nl (via RT)" <perlbug-followup@perl.org> writes: > # New Ticket Created by joost@carnique.nl > # Please include the string: [perl #24491] > # in the subject line of all future correspondence about this issue. > # <URL: http://rt.perl.org/rt2/Ticket/Display.html?id=24491 > > > > > This is a bug report for perl from joost@carnique.nl, > generated with the help of perlbug 1.34 running under perl v5.8.2. > > > ----------------------------------------------------------------- > [Please enter your report here] > Term::ReadLine problem. > > Using the example code in the SYNOPSIS on > http://search.cpan.org/~nwclark/perl-5.8.2/lib/Term/ReadLine.pm > works fine. However, adding a "\n" in $prompt makes the output > as follows: > > Enter your arithmetic > Enter your arithmetic > expression: > > where the first line is underlined up to the "\n", and the two lines > below are completely underlined. > This happens with Term::ReadLine::Perl. > With T::R::Gnu, this problem does not occur. > > perl -MTerm::ReadLine -e'print join $/, values %INC;' > /usr/share/perl/5.8.2/Carp.pm > /usr/share/perl/5.8.2/Term/ReadLine.pm > /usr/share/perl/5.8.2/Exporter.pm > /usr/share/perl/5.8.2/strict.pm > /usr/share/perl5/Term/ReadLine/Perl.pm > From looking at the Term/ReadLine/readline.pm code, it seems that "\n" is not supported. Anyway, this bugreport should go to the T::R::P maintainers. Regards, Slaven -- Slaven Rezic - slaven@rezic.de tktimex - project time manager http://sourceforge.net/projects/ptktools/Thread Previous