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 denilsonsa
Date 2011-12-16.01:01:38
SpamBayes Score 3.2031338e-07
Marked as misclassified No
Message-id <>
Please add a function called "os.get_terminal_size()" that should return a tuple "(width, height)".

The built-in "argparse" module would directly benefit from this function, as it would wrap the help text correctly. I'm pretty sure many users would also benefit from it.

Once this function gets implemented, issue #13041 can be trivially fixed. There are some suggestions about how to implement this feature in issue #8408.

[extra feature:] After this function gets implemented, it might be a good idea to implement some kind of API to detect size changes without requiring probing. (or, at least, the documentation should give some directions about how to achieve it)
Date User Action Args
2011-12-16 01:01:39denilsonsasetrecipients: + denilsonsa
2011-12-16 01:01:38denilsonsasetmessageid: <>
2011-12-16 01:01:38denilsonsalinkissue13609 messages
2011-12-16 01:01:38denilsonsacreate