go-console icon indicating copy to clipboard operation
go-console copied to clipboard

Is it possible to remove winpty

Open shanjunmei opened this issue 3 years ago • 1 comments

does it possible replace with https://github.com/golang/term or https://github.com/containerd/console

shanjunmei avatar Dec 25 '22 04:12 shanjunmei

No, winpty translates windows console events into pty characters.

golang/term is effectively a terminal emulator, it manages the visual state of a pty by sending control characters, but does not translate windows console events to pty characters.

containerd/console provides methods for controlling ptys on linux, and the console on windows. It does not provide a method for converting it into a pty compatible form.

NHAS avatar Dec 31 '22 06:12 NHAS