[issue41663] Support Windows pseudoterminals in pty and termios modules
Chad Smith
report at bugs.python.org
Sat Aug 29 14:28:07 EDT 2020
New submission from Chad Smith <smithchad63 at hotmail.com>:
The pty and termios modules do not support Windows. Current Python pty documentation suggest Windows might be supported:
> The Linux code is supposed to work on other platforms, but hasn’t been tested yet.
but I have confirmed that it is not while adding pty usage to gdbgui.
The new Windows Psuedo Console, ConPTY, available in Windows 10, now makes this possible.
Proof of existence of a common pty interface for all platforms exists for node with the node-pty npm package, which uses ConPTY.
References:
* ConPTY information, https://devblogs.microsoft.com/commandline/windows-command-line-introducing-the-windows-pseudo-console-conpty/
* Example ConPTY usage, https://github.com/microsoft/terminal/blob/master/samples/ConPTY/EchoCon/EchoCon/EchoCon.cpp
* node-pty, https://github.com/Microsoft/node-pty
* Python pty docs, https://docs.python.org/3/library/pty.html
* gdbgui Windows pty issue, https://github.com/cs01/gdbgui/issues/348
----------
messages: 376071
nosy: cs01, steve.dower
priority: normal
severity: normal
status: open
title: Support Windows pseudoterminals in pty and termios modules
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41663>
_______________________________________
More information about the Python-bugs-list
mailing list