Should only wrap when STDOUT is a tty, not STDIN

[merge]