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

ConPTY Support on Windows #5

Open
Stanzilla opened this issue May 4, 2020 · 5 comments
Open

ConPTY Support on Windows #5

Stanzilla opened this issue May 4, 2020 · 5 comments

Comments

@Stanzilla
Copy link

Hey there, in prompt-toolkit/python-prompt-toolkit#723 you hinted that support for ConPTY on Windows might be coming, are there any updates on this?

@jonathanslenders
Copy link
Member

Hi @Stanzilla,

No updates on that yet. I'm busy updating ptterm for prompt_toolkit 3.0. That's mostly finished, except for the Windows support. Maybe I should look into ConPTY and not bother fixing the winpty code. (If you want to contribute, see if you can create a PR to that branch.)

@Stanzilla
Copy link
Author

Sadly won't have time to contribute but it looks like winpty is pretty dead anyway so it might be time to move on. Appreciate your work!

@szevzol
Copy link

szevzol commented Nov 16, 2024

I just did a quick search and found https://github.com/andfoy/pywinpty. Maybe it can replace winpty?

@jonathanslenders
Copy link
Member

For recent Windows versions, winpty should no longer be needed. (that's since a couple of years now).

ptterm should be rewritten to take advantage of the newer Win32 syscalls. (like SetConsoleMode). Unfortunately, I don't have time for this...

@szevzol
Copy link

szevzol commented Nov 19, 2024

I'm researching the topic e.g. here: https://learn.microsoft.com/en-us/windows/console/console-reference

A python wrapper class that provides the same functions for ptterm as the backends and under the hood calls Console API functions would be the way to go, right?

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

3 participants