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
1 changed files with 1 additions and 1 deletions

View File

@ -109,7 +109,7 @@ func (p *Program) exec(c ExecCommand, fn ExecCallback) {
} }
c.SetStdin(p.input) c.SetStdin(p.input)
c.SetStdout(p.output) c.SetStdout(p.output.TTY())
c.SetStderr(os.Stderr) c.SetStderr(os.Stderr)
// Execute system command. // Execute system command.