Skip Menu |

Preferred bug tracker

Please email the preferred bug tracker to report your issue.

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Term-ReadLine CPAN distribution.

Report information
The Basics
Id: 110847
Status: open
Priority: 0/
Queue: Term-ReadLine

People
Owner: Nobody in particular
Requestors: kes-kes [...] yandex.ru
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: unexpected output while readline
while( defined (my $line = $term->readline( 'DBG> ' ) ) ) { print "YES"; } When the promt is displayed just hit ENTER then you get next output: Show quoted text
DBG>
Show quoted text
DBG> YES
but expected: Show quoted text
DBG>
YES Show quoted text
DBG>
the buffers should be flushed before the prompt or not flushed at all
Subject: Re: [rt.cpan.org #110847] unexpected output while readline
Date: Sat, 2 Jan 2016 09:21:12 -0800
To: Eugen Konkov via RT <bug-Term-ReadLine [...] rt.cpan.org>
From: Ilya Zakharevich <nospam-abuse [...] ilyaz.org>
On Sat, Jan 02, 2016 at 08:14:53AM -0500, Eugen Konkov via RT wrote: Show quoted text
> Sat Jan 02 08:14:51 2016: Request 110847 was acted upon. > Transaction: Ticket created by kes-kes@yandex.ru > Queue: Term-ReadLine > Subject: unexpected output while readline > Broken in: (no value) > Severity: (no value) > Owner: Nobody > Requestors: kes-kes@yandex.ru > Status: new > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=110847 > > > > while( defined (my $line = $term->readline( 'DBG> ' ) ) ) { > print "YES"; > } > When the promt is displayed just hit ENTER then you get next output: >
> DBG>
>
> DBG> YES
> > but expected: >
> DBG>
> YES
> DBG>
Why do you expect this? You are not print()ing to the terminal… Your print goes nobody knows where… Ilya
From: kes-kes [...] yandex.ru
Show quoted text
> Your print goes nobody knows where…
I output to the same FH as $term->readline prints promt
Subject: Re: [rt.cpan.org #110847] unexpected output while readline
Date: Mon, 11 Jan 2016 13:50:54 -0800
To: Eugen Konkov via RT <bug-Term-ReadLine [...] rt.cpan.org>
From: Ilya Zakharevich <nospam-abuse [...] ilyaz.org>
On Sun, Jan 10, 2016 at 09:34:43AM -0500, Eugen Konkov via RT wrote: Show quoted text
> Queue: Term-ReadLine > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=110847 > >
> > Your print goes nobody knows where…
> > I output to the same FH as $term->readline prints promt
How do you know?! This is not how your snippet of code looked like… I suspect you are mixing up TTYs and FHs… Hope this helps, Ilya