Fix term output capturing

Fixes #2912
This commit is contained in:
Zachary Yedidia 2023-09-08 23:27:39 -07:00
parent fbce241753
commit 630b3229ee

View File

@ -78,8 +78,8 @@ func (t *Terminal) Start(execCmd []string, getOutput bool, wait bool, callback f
t.output = nil
if getOutput {
t.output = bytes.NewBuffer([]byte{})
cmd.Stdout = t.output
}
cmd.Stdout = t.output
Term, _, err := terminal.Start(&t.State, cmd)
if err != nil {
return err