pyinvoke / invoke

Pythonic task management & command execution.
http://pyinvoke.org
BSD 2-Clause "Simplified" License
4.31k stars 365 forks source link

Add PTY-Support for windows #975

Open DavidDotCheck opened 8 months ago

DavidDotCheck commented 8 months ago

Summary:

As mentioned in #561, PTY is currently missing support on windows, which somewhat limits invoke's usefulness for windows users. I quickly threw together a PR to demo the changes necessary, which I present here as a starting of point.

Changes:

Notes:

Testing:

If there is any interest in fixing this, I'd be happy for any help, feedback or changes. I'm strapped for time with other projects as it stands unfortunately, so feel free to help out!

tpjnorton commented 6 months ago

Hi @DavidDotCheck - do you think you'll finish this PR up? Or is it just for demo purposes?

DavidDotCheck commented 6 months ago

It's just for demo purposes since I didn't get any feedback or interest. I'm open to polishing it up and finishing the PR, but there are a few questions and problems in the way for now so until it get's some momentum or help, it will probably take a while. As it stands, the changes are small and concise enough, that a more involved contributor could probably help iron out the issues far faster. On the top of my hat, still left is:

I also had to make a lot of unrelated changes to the code and encountered quite a few errors and bugs that I had to fix, which makes me wonder if I set up my environment wrong.

tpjnorton commented 6 months ago

Okay, thanks for the detailed update!