#3707·alacritty

Idea: use a genuine Linux PTY via WSL on Windows

Author: chris-morganCreated May 10, 2020Updated Aug 25, 2026
LabelsP - lowH - windows

WinPTY and ConPTY keep on causing me misery, mangling perfectly good ANSI escape codes and slowing things down for literally no benefit for me, given that I’m running Linuxy stuff only in my terminal now.

So I’m finally wondering: would it be possible to provide another backend for Windows (besides the WinPTY and ConPTY ones), which would dive into WSL and spawn a PTY the Linux way, and use that as its source?

I have no idea if this is feasible or how it would be done. If it worked, I have no idea whether you could still spawn Windows executables from the Linux side, or whether they would mysteriously stop working. (I’d be totally fine with that, but it would put a damper on things for general utility.)

If given somewhere to start, I’d be interested in working on this.

Objectives of this would be: vastly improved performance (ConPTY is faster than WinPTY was, but it’s still a major bottleneck), and pristine ANSI codes so I can be free of problems due to the likes of #3361, https://github.com/microsoft/terminal/issues/2661 and https://github.com/microsoft/terminal/issues/5682. And I could finally switch to a light terminal theme without major problems, I think.