fix: Handle platform specific PTY polling for terminal copy (#279)

* fix: Handle platform specific PTY polling for terminal copy

* fix: Code review fixes

* fix: Code review fixes
This commit is contained in:
Abhisek Datta
2026-05-28 18:11:11 +05:30
committed by GitHub
parent 1c25395d74
commit 4540dafccc
6 changed files with 269 additions and 6 deletions
+15
View File
@@ -0,0 +1,15 @@
//go:build windows
package pty
import (
"context"
"io"
)
// copyPTYOutput on Windows uses a plain context-aware copy. The conpty backend
// is not affected by the kqueue netpoller issue that requires a poll(2) loop on
// unix hosts.
func copyPTYOutput(ctx context.Context, dst io.Writer, src io.Reader) error {
return copyWithContext(ctx, dst, src)
}