Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Color die and warn messages

by Anonymous Monk
on Mar 05, 2025 at 01:05 UTC ( [id://11164148]=note: print w/replies, xml ) Need Help??


in reply to Color die and warn messages

i tried using it and noticed occasionally when there is much output, the reset isn't set properly, so all remaining output is colored, even if not from warn/die. sorry, i couldn't figure out a minimal test case to demonstrate.

Replies are listed 'Best First'.
Re^2: Color die and warn messages
by Anonymous Monk on Apr 09, 2025 at 10:35 UTC
    It's probably because something is messing with STDERR and putting it into line-buffered mode. I've seen some modules do that. This could probably be fixed using IO::Handle::printflush to print the terminal reset sequence.
      Indeed, that did work. printflush() prevents writes to stderrr and stdout from intermingling.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11164148]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (4)
As of 2026-04-13 14:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.