H
h3xx
I have a program that uses Term::ANSIColor to print colored output,
but would like for it not to output the coloring escape sequences if
the output is being redirected to a program through a pipe.
In essence, it would act like grep's "--color=auto" flag.
Is there any way to test whether STDIN is going into a pipe?
but would like for it not to output the coloring escape sequences if
the output is being redirected to a program through a pipe.
In essence, it would act like grep's "--color=auto" flag.
Is there any way to test whether STDIN is going into a pipe?