diff --git a/exec.go b/exec.go index fb6d91e..ef353eb 100644 --- a/exec.go +++ b/exec.go @@ -109,7 +109,7 @@ func (p *Program) exec(c ExecCommand, fn ExecCallback) { } c.SetStdin(p.input) - c.SetStdout(p.output.TTY()) + c.SetStdout(p.output.Writer()) c.SetStderr(os.Stderr) // Execute system command.