From da54c0f039fe35aef01dabeaf6267fd4e3ba377d Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Mon, 3 Mar 2025 02:31:12 -0600 Subject: always write to /tmp/ also --- stdoutShow.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'stdoutShow.go') diff --git a/stdoutShow.go b/stdoutShow.go index 75a4ae5..68ec55b 100644 --- a/stdoutShow.go +++ b/stdoutShow.go @@ -161,13 +161,15 @@ func (w stdout) Write(p []byte) (n int, err error) { lines := strings.Split(strings.TrimSpace(string(p)), "\n") me.stdout.outputS = append(me.stdout.outputS, lines...) + fmt.Fprint(outf, string(p)) return len(p), nil } func (w *guiWidget) Write(p []byte) (n int, err error) { + lines := strings.Split(strings.TrimSpace(string(p)), "\n") + fmt.Fprint(outf, string(p)) if w == nil { - lines := strings.Split(strings.TrimSpace(string(p)), "\n") me.stdout.outputS = append(me.stdout.outputS, lines...) return len(p), nil } @@ -175,7 +177,6 @@ func (w *guiWidget) Write(p []byte) (n int, err error) { me.writeMutex.Lock() defer me.writeMutex.Unlock() - lines := strings.Split(strings.TrimSpace(string(p)), "\n") me.stdout.outputS = append(me.stdout.outputS, lines...) tk := me.stdout.tk -- cgit v1.2.3