There was an error while loading. Please reload this page.
1 parent b2249da commit 4d8d073Copy full SHA for 4d8d073
progress/progress.go
@@ -353,9 +353,11 @@ func (p *Progress) initForRender() {
353
p.updateFrequency = DefaultUpdateFrequency
354
}
355
356
-// get the current terminal size for preventing roll-overs, and do this in a
357
-// background loop until end of render
358
-go p.watchTerminalSize() // needs p.updateFrequency
+if p.outputWriter == os.Stdout {
+// get the current terminal size for preventing roll-overs, and do this in a
+// background loop until end of render. This only works if the output writer is STDOUT.
359
+go p.watchTerminalSize() // needs p.updateFrequency
360
+}
361
362
363
func (p *Progress) updateTerminalSize() {
0 commit comments