
Hello. I am currently using a tiling window manager ( i3wm ). While using pty.spawn(), resizing xterm's X window also resizes the underlying terminal size; as a result, output of commands such as ls(1) become incorrectly laid out, making them very hard to read. Further, I have noticed that the pty library has several long-standing issues (such as bpo-26228). I have made several improvements to the pty and tty libraries. I propose that we create a new library "pty2" ( https://github.com/8vasu/pypty2 ) while keeping "pty" for backward compatibility, because there are several unmerged conflicting PRs related to these issues. That being said, "pty2" was created as a drop-in replacement for "pty". It has been tested on Linux, FreeBSD, NetBSD, and OpenBSD. While there are pty libraries for python on PyPI that have greater scope, a minimal, yet solid official pty.spawn() will make it very convenient for programmers to perform quick tests. Thank you! Soumendra Ganguly

On 9/6/2020 10:38 PM, Soumendra Ganguly wrote:
Hello. I am currently using a tiling window manager ( i3wm ). While using pty.spawn(), resizing xterm's X window also resizes the underlying terminal size; as a result, output of commands such as ls(1) become incorrectly laid out, making them very hard to read.
Further, I have noticed that the pty library has several long-standing issues (such as bpo-26228).
I have made several improvements to the pty and tty libraries. I propose that we create a new library "pty2" ( https://github.com/8vasu/pypty2 ) while keeping "pty" for backward compatibility, because there are several unmerged conflicting PRs related to these issues.
The problem is that pty has no active maintainer to make decisions. Proposing a duplicate module will not solve that. -- Terry Jan Reedy
participants (2)
-
Soumendra Ganguly
-
Terry Reedy