Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^3: test output in colour ?

by diotalevi (Canon)
on Feb 14, 2008 at 05:16 UTC ( #667879=note: print w/replies, xml ) Need Help??


in reply to Re^2: test output in colour ?
in thread test output in colour ?

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.

⠤⠤ ⠙⠊⠕⠞⠁⠇⠑⠧⠊

Replies are listed 'Best First'.
Re^4: test output in colour ?
by jasonk (Parson) on Feb 18, 2008 at 00:43 UTC

    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!

      Ah yes. I'd forgotten about ~/.ackrc. Silly.

      ⠤⠤ ⠙⠊⠕⠞⠁⠇⠑⠧⠊

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (1)
As of 2020-10-25 17:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (249 votes). Check out past polls.

    Notices?