Files
bifrost/cli/internal/runtime/pty_windows.go
Beyhan Oğur 880f412e2c first commit
2026-04-26 21:52:23 +03:00

21 lines
447 B
Go

//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()
}