in reply to test output in colour ?

I'm pretty sure you get this for free with Test::Harness 3.0. Upgrade that, and everything else should follow just nicely.

• another intruder with the mooring in the heart of the Perl

Replies are listed 'Best First'.
Re^2: test output in colour ?
by Ovid (Cardinal) on Feb 11, 2008 at 16:46 UTC

    Yup, it's built-in. If we think the output isn't going to a terminal or if you don't have the correct modules installed, we disable the color output. You can also do this manually with the --nocolor switch.

    Cheers,
    Ovid

    New address of my CGI Course.

      The terminal detection is really annoying. I often pipe colorful output to `less -r'. If tools stopped istty() then my tools would work better. Same goes for ack.

      ⠤⠤ ⠙⠊⠕⠞⠁⠇⠑⠧⠊

        With ack you can override it, I haven't tried for for prove yet...

        alias ack='ack --color --group' alias plainack='ack --nocolor --nogroup'

        We're not surrounded, we're in a target-rich environment!