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.