http://www.perlmonks.org?node_id=393025


in reply to How do you properly tty-ify a non-tty STDOUT?

I contributed a snippet a while back that does exactly this: Fool a process into thinking that STDOUT is a terminal.
------------ :Wq Not an editor command: Wq