Message144508
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. |
|
Date |
User |
Action |
Args |
2011-09-24 22:07:20 | zbysz | set | recipients:
+ zbysz |
2011-09-24 22:07:20 | zbysz | set | messageid: <1316902040.77.0.692202253798.issue13042@psf.upfronthosting.co.za> |
2011-09-24 22:07:20 | zbysz | link | issue13042 messages |
2011-09-24 22:07:20 | zbysz | create | |
|