github.com/lmorg/murex@v0.0.0-20240217211045-e081c89cd4ef/lang/process_fallback.go (about) 1 //go:build windows || plan9 || js 2 // +build windows plan9 js 3 4 package lang 5 6 import ( 7 "github.com/lmorg/murex/builtins/pipes/streams" 8 "github.com/lmorg/murex/lang/types" 9 ) 10 11 func ttys(p *Process) { 12 if p.CCExists != nil && p.CCExists(p.Name.String()) { 13 p.Stderr, p.CCErr = streams.NewTee(p.Stderr) 14 p.CCErr.SetDataType(types.Generic) 15 16 p.Stdout, p.CCOut = streams.NewTee(p.Stdout) 17 } 18 }