first commit

This commit is contained in:
Beyhan Oğur
2026-04-26 21:52:23 +03:00
commit 880f412e2c
2662 changed files with 866266 additions and 0 deletions

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