in reply to Re: Color die and warn messages
in thread Color die and warn messages

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.

Replies are listed 'Best First'.
Re^3: Color die and warn messages
by Anonymous Monk on Jul 13, 2025 at 23:30 UTC
    Indeed, that did work. printflush() prevents writes to stderrr and stdout from intermingling.