mirror of
https://github.com/safedep/pmg.git
synced 2026-08-03 07:24:09 +02:00
* fix: Handle platform specific PTY polling for terminal copy * fix: Code review fixes * fix: Code review fixes
16 lines
357 B
Go
16 lines
357 B
Go
//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)
|
|
}
|