Message149586
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:39 | denilsonsa | set | recipients:
+ denilsonsa |
2011-12-16 01:01:38 | denilsonsa | set | messageid: <1323997298.98.0.00319779142763.issue13609@psf.upfronthosting.co.za> |
2011-12-16 01:01:38 | denilsonsa | link | issue13609 messages |
2011-12-16 01:01:38 | denilsonsa | create | |
|