diff --git a/exec.go b/exec.go index 7a14d2a778..fb6d91ed15 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) + c.SetStdout(p.output.TTY()) c.SetStderr(os.Stderr) // Execute system command.