Message144508
| 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: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 |
|