diff options
| author | Jeff Carr <[email protected]> | 2025-03-03 02:31:12 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-03-03 02:31:12 -0600 |
| commit | da54c0f039fe35aef01dabeaf6267fd4e3ba377d (patch) | |
| tree | f7a55f1a1d21badc464645f3813e729c14bc985c /stdoutShow.go | |
| parent | 6d1dfed3db9c08b85fd40c1592edf3c730b5b348 (diff) | |
always write to /tmp/ also
Diffstat (limited to 'stdoutShow.go')
| -rw-r--r-- | stdoutShow.go | 5 |
1 files changed, 3 insertions, 2 deletions
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 |
