Message363212
But you can replace the simple 'lambda' with a function that takes the max with 'columns'. In other words, include:
width = _shutil.get_terminal_size().columns
width -= 2
width = min(max_text_width, width)
The only thing that the 'formatter_class' parameter requires is a callable that takes 'prog' as argument. That can be a class, a subclass, a lambda or a function. |
|
Date |
User |
Action |
Args |
2020-03-02 22:04:30 | paul.j3 | set | recipients:
+ paul.j3, rhettinger, lucatrv |
2020-03-02 22:04:30 | paul.j3 | set | messageid: <1583186670.2.0.910159011893.issue39809@roundup.psfhosted.org> |
2020-03-02 22:04:30 | paul.j3 | link | issue39809 messages |
2020-03-02 22:04:30 | paul.j3 | create | |
|