Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
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.

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 about the Monastery: (4)
As of 2025-05-22 06:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.