homepage

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 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:50denilsonsasetrecipients: + denilsonsa, vstinner, Arfrever, zbysz, BreamoreBoy
2014年07月07日 22:10:50denilsonsasetmessageid: <1404771050.38.0.0269320887459.issue14841@psf.upfronthosting.co.za>
2014年07月07日 22:10:50denilsonsalinkissue14841 messages
2014年07月07日 22:10:49denilsonsacreate

AltStyle によって変換されたページ (->オリジナル) /