[issue41541] Make pty.spawn set window size [ patch + before, after screenshots ]

Soumendra Ganguly report at bugs.python.org
Fri Aug 14 22:22:04 EDT 2020


Soumendra Ganguly <soumendra at tamu.edu> added the comment:

Adding the test program [ test.py ] as an attachment. It was taken from https://docs.python.org/3/library/pty.html.

How to reproduce issue:

1. Notice that the xterm window in before.png is not too wide; this makes the output of "ls" wrap around the xterm window.
2. Run test.py.
3. Run "ls".

Solution:

1. Apply latest version of the patch [ pty.diff ].
2. Run test.pty and run "ls".
3. Run "ls".

----------
Added file: https://bugs.python.org/file49393/test.py

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41541>
_______________________________________


More information about the Python-bugs-list mailing list