fix: pass actual stdout's fd to command

This commit is contained in:
Christian Muehlhaeuser
2022-11-01 00:13:21 +01:00
parent 4f83c621fb
commit 741f2d37f0

View File

@@ -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.