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
_______________________________________________
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.org
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/python-dev@python.org/message/PQ36UPCRNLQBJ5AK3CHW4J2KWBEWBFCS/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to