From 741f2d37f04596d631cfbebbd9b03665a3d4d880 Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Tue, 1 Nov 2022 00:13:21 +0100 Subject: [PATCH] fix: pass actual stdout's fd to command --- exec.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.