Author soumendra
Recipients soumendra
Date 2020-08-13.17:36:59
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1597340220.32.0.858165521017.issue41541@roundup.psfhosted.org>
In-reply-to
Content
The example in https://docs.python.org/3/library/pty.html that mimics script(1) can be used to reproduce the problem: since window size is not set by pty.spawn, output of "ls" becomes scattered and hard to visually parse if xterm window is not in fullscreen mode.

To fix the above issue, this patch makes pty.spawn set window size ( TIOCSWINSZ ). Also, this patch makes the code of pty.fork() more readable by defining _login_pty(); the latter is reused in spawn().
History
Date User Action Args
2020-08-13 17:37:00soumendrasetrecipients: + soumendra
2020-08-13 17:37:00soumendrasetmessageid: <1597340220.32.0.858165521017.issue41541@roundup.psfhosted.org>
2020-08-13 17:37:00soumendralinkissue41541 messages
2020-08-13 17:37:00soumendracreate