Add dynamic `MAX_PROGRESS_WIDTH` global variable to handle long lines (#435)uuu_1.5.191
commit6c2141e3e820c5a487482adcde5cf66266c07656
authorThomas Mahé <contact@tmahe.dev>
Fri, 18 Oct 2024 14:54:27 +0000 (18 16:54 +0200)
committerGitHub <noreply@github.com>
Fri, 18 Oct 2024 14:54:27 +0000 (18 09:54 -0500)
tree89771000a9f27aa8ec481b37cd26c52249dbb4c0
parentf0761dc0dd67e7628fe6d65898511bcb2d5a265c
Add dynamic `MAX_PROGRESS_WIDTH` global variable to handle long lines (#435)

* Add dynamic `g_max_process_width` global variable to handle long lines

Fix long line issue when using `uuu` outside of a terminal. eg: python.subprocess.
 `print_auto_scroll`: resize status when longer than console width

Signed-off-by: Thomas Mahé <thomas.mahe@nxp.com>
uuu/uuu.cpp