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.

作者 zbysz
收信人 zbysz
日期 2011-09-24.22:07:20
SpamBayes Score 4.6264995e-05
Marked as misclassified
Message-id <1316902040.77.0.692202253798.issue13042@psf.upfronthosting.co.za>
In-reply-to
内容
COLUMNS is a shell variable (updated whenever the window size
changes), that usually isn't exported to programs. Therefore checking
for COLUMNS in sys.environ will not work in the majority of cases. The
proper check is to use the TIOCGWINSZ ioctl on stdout.
    
Why COLUMNS is not exported? Because it can change during the lifetime
of a program. Therefore it is better to use the dynamic ioctl.
历史
日期 用户 动作 参数
2011-09-24 22:07:20zbysz修改recipients: + zbysz
2011-09-24 22:07:20zbysz修改messageid: <1316902040.77.0.692202253798.issue13042@psf.upfronthosting.co.za>
2011-09-24 22:07:20zbysz链接issue13042 messages
2011-09-24 22:07:20zbysz创建