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 zbysz
Recipients zbysz
Date 2011-09-24.22:07:20
SpamBayes Score 4.6264995e-05
Marked as misclassified No
Message-id <1316902040.77.0.692202253798.issue13042@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2011-09-24 22:07:20zbyszsetrecipients: + zbysz
2011-09-24 22:07:20zbyszsetmessageid: <1316902040.77.0.692202253798.issue13042@psf.upfronthosting.co.za>
2011-09-24 22:07:20zbyszlinkissue13042 messages
2011-09-24 22:07:20zbyszcreate