pipetty - a tool to pipe from a pseudoterminal
lets you make a program unaware that its output is being redirected.
This is usually useful for tools that detect whether they're run from a
terminal and modify their output, typically colorizing it only when run
Usually, disabling colors when redirected is a good thing as most tools
can't cope with ANSI codes. Use
when you do want colors, like when you're going to feed that output to
Certain programs, such as
don't quite like their stdin to be on a different terminal than stdout.