first commit
This commit is contained in:
20
cli/internal/runtime/pty_windows.go
Normal file
20
cli/internal/runtime/pty_windows.go
Normal file
@@ -0,0 +1,20 @@
|
||||
//go:build windows
|
||||
|
||||
package runtime
|
||||
|
||||
import (
|
||||
"context"
|
||||
"io"
|
||||
"os"
|
||||
"os/exec"
|
||||
)
|
||||
|
||||
// runWithPTY is a no-op on Windows — falls back to direct stdin/stdout piping.
|
||||
// Windows does not support POSIX pseudo-terminals; full support would require
|
||||
// ConPTY which is not yet portable in Go.
|
||||
func runWithPTY(_ context.Context, stdout io.Writer, cmd *exec.Cmd) error {
|
||||
cmd.Stdout = stdout
|
||||
cmd.Stderr = stdout
|
||||
cmd.Stdin = os.Stdin
|
||||
return cmd.Run()
|
||||
}
|
||||
Reference in New Issue
Block a user