You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Investigate using new Windows PTY support for terminal pane #3798
On Windows, RStudio currently uses WinPty, which relies on a hidden console and screen-scraping, to provide a pseudo-terminal like environment for the terminal pane. This has performance and behavior limitations.
Windows is adding an actual PTY-like feature; should investigate for a future version of RStudio.
We may get this via WinPty, which would be the best of both worlds (continue working on older versions of Windows, use the new greatness on builds that support it). rprichard/winpty#152
Should only support ConPTY on Windows-10 build 18309 or newer; VSCode found it too unstable before that build. See also the check against getWindowsBuildNumber() in the Microsoft node-pty repo.
Worried that the terminal in Windows desktop is becoming unusable due to increasingly frequent reports of display issues due to WinPty (along with pre-existing problems with performance).
VSCode faced the same thing (microsoft/vscode#45693) and ultimately solved most of them by implementing ConPTY.
Given this is our most widely used version (Windows Desktop) I believe it is worth a short investigation to see if adding ConPTY support can be added safely for 1.4.
Need to do this before we can support ARM builds for Windows. We could, potentially, build winpty from source for ARM, and it might work, but suspect will be less painful to just go to ConPTY.
Activity
gtritchie commentedon Apr 17, 2019
Also see: https://github.com/microsoft/console
gtritchie commentedon Sep 23, 2020
Should only support ConPTY on Windows-10 build 18309 or newer; VSCode found it too unstable before that build. See also the check against
getWindowsBuildNumber()in the Microsoft node-pty repo.gtritchie commentedon Oct 2, 2020
Worried that the terminal in Windows desktop is becoming unusable due to increasingly frequent reports of display issues due to WinPty (along with pre-existing problems with performance).
VSCode faced the same thing (microsoft/vscode#45693) and ultimately solved most of them by implementing ConPTY.
Given this is our most widely used version (Windows Desktop) I believe it is worth a short investigation to see if adding ConPTY support can be added safely for 1.4.
gtritchie commentedon Oct 6, 2020
Too ambitious for 1.4; mainly because the Windows APIs don't support async IO and require spinning up threads to prevent deadlocks. Moving to 1.5.
5 remaining items
gtritchie commentedon May 21, 2026
Need to do this before we can support ARM builds for Windows. We could, potentially, build
winptyfrom source for ARM, and it might work, but suspect will be less painful to just go to ConPTY.https://learn.microsoft.com/en-us/windows/console/creating-a-pseudoconsole-session
Fix ConPTY terminal: child stole rsession's redirected std handles
Migrate the Windows terminal backend from winpty to ConPTY (#17814)