Message222527
| Author |
denilsonsa |
| Recipients |
Arfrever, BreamoreBoy, denilsonsa, vstinner, zbysz |
| Date |
2014年07月07日.22:10:49 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1404771050.38.0.0269320887459.issue14841@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
FYI, "tput" tool can find out the dimensions even when both stdin and stdout are redirected. It can't, however, if all stdin, stdout and stderr are redirected. Python should probably implement a similar logic.
$ echo | stty size
stty: standard input: Inappropriate ioctl for device
$ echo | tput cols | cat
223
$ echo | tput cols 2>&1 | cat
80
(tested under Linux) |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2014年07月07日 22:10:50 | denilsonsa | set | recipients:
+ denilsonsa, vstinner, Arfrever, zbysz, BreamoreBoy |
| 2014年07月07日 22:10:50 | denilsonsa | set | messageid: <1404771050.38.0.0269320887459.issue14841@psf.upfronthosting.co.za> |
| 2014年07月07日 22:10:50 | denilsonsa | link | issue14841 messages |
| 2014年07月07日 22:10:49 | denilsonsa | create |
|