Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to remove winpty #21

Open
shanjunmei opened this issue Dec 25, 2022 · 1 comment
Open

Is it possible to remove winpty #21

shanjunmei opened this issue Dec 25, 2022 · 1 comment

Comments

@shanjunmei
Copy link

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

@NHAS
Copy link

NHAS commented Dec 31, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants