This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients Arfrever, amaury.forgeotdarc, denilsonsa, eric.araujo, giampaolo.rodola, loewis, neologix, pitrou, python-dev, rosslagerwall, techtonik, vstinner, zbysz
Date 2012-02-12.23:02:44
SpamBayes Score 0.0011307903
Marked as misclassified No
Message-id <1329087765.42.0.413040232793.issue13609@psf.upfronthosting.co.za>
In-reply-to
Content
Using strace, I see that stty calls ioctl(TIOCGWINSZ) on stdin (fd=0)
if it failed on stdout (fd=1), whereas Python only tries stdout.

Attached patch implements a similar idea.
History
Date User Action Args
2012-02-12 23:02:45vstinnersetrecipients: + vstinner, loewis, amaury.forgeotdarc, pitrou, techtonik, giampaolo.rodola, eric.araujo, Arfrever, zbysz, denilsonsa, neologix, rosslagerwall, python-dev
2012-02-12 23:02:45vstinnersetmessageid: <1329087765.42.0.413040232793.issue13609@psf.upfronthosting.co.za>
2012-02-12 23:02:44vstinnerlinkissue13609 messages
2012-02-12 23:02:44vstinnercreate