Message153232
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. |
|
Date |
User |
Action |
Args |
2012-02-12 23:02:45 | vstinner | set | recipients:
+ vstinner, loewis, amaury.forgeotdarc, pitrou, techtonik, giampaolo.rodola, eric.araujo, Arfrever, zbysz, denilsonsa, neologix, rosslagerwall, python-dev |
2012-02-12 23:02:45 | vstinner | set | messageid: <1329087765.42.0.413040232793.issue13609@psf.upfronthosting.co.za> |
2012-02-12 23:02:44 | vstinner | link | issue13609 messages |
2012-02-12 23:02:44 | vstinner | create | |
|