Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

Term::ReadLine extra newlines?

by rjray (Chaplain)
on Mar 31, 2006 at 03:05 UTC ( #540354=perlquestion: print w/replies, xml ) Need Help??

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

Has anyone noticed any problems with either Term::ReadLine itself, or one of the implementation classes, inserting extra newline characters when displaying prompts? This only recently happened, after upgrading my Linux box to Fedora Core 5. Checking against CPAN, I have the latest version of T::RL, and of T::RL::Perl, etc. I cannot find anything in the manual pages to suggest that this is an accidentally-enabled "feature".


Replies are listed 'Best First'.
Re: Term::ReadLine extra newlines?
by adamk (Chaplain) on Mar 31, 2006 at 14:32 UTC
    Hmm... that bug in the most recent version was believed to be Win32-specific. I'm not sure they've been able to nail it down yet... if the assembled monks could work out why the hell it's happening, it would be helpful.
Re: Term::ReadLine extra newlines?
by bart (Canon) on Mar 31, 2006 at 15:41 UTC
    It sounds to me as if a bare CR, which should just reposition the cursor at the start of the current line, is being interpreted as a real end of line, thus, starting again on the next line.

    Could that be what is going on?

      I doubt it. There are no CRs in the strings I'm passing to $term->readline($prompt). It has to be coming in somewhere within readline itself.


Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://540354]
Approved by neversaint
Front-paged by planetscape
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (6)
As of 2022-05-29 11:59 GMT
Find Nodes?
    Voting Booth?
    Do you prefer to work remotely?

    Results (101 votes). Check out past polls.