Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

resizing terminal breaks --progress-bar #14565

Closed
lolbinarycat opened this issue Aug 15, 2024 · 0 comments
Closed

resizing terminal breaks --progress-bar #14565

lolbinarycat opened this issue Aug 15, 2024 · 0 comments

Comments

@lolbinarycat
Copy link

I did this

download a large file with progress bar enabled (eg. curl --progress-bar https://static.rust-lang.org/dist/2024-07-26/cargo-beta-x86_64-unknown-linux-gnu.tar.xz > /dev/null)

resize terminal to be much smaller (i'm using alacritty and sway, so i can just put it into floating mode)

curl then prints more than the line width, so even with CR it produces hard line wraps.

I expected the following

curl should notice the resize and change the width of the displayed progress bar, or it should use some escape code magic. extra lines should not be produced.

curl/libcurl version

curl 8.4.0 (x86_64-pc-linux-gnu) libcurl/8.4.0 OpenSSL/3.0.13 zlib/1.3 brotli/1.1.0 zstd/1.5.5 libidn2/2.3.4 libssh2/1.11.0 nghttp2/1.57.0
Release-Date: 2023-10-11
Protocols: dict file ftp ftps gopher gophers http https imap imaps mqtt pop3 pop3s rtsp scp sftp smb smbs smtp smtps telnet tftp
Features: alt-svc AsynchDNS brotli GSS-API HSTS HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM SPNEGO SSL threadsafe TLS-SRP UnixSockets zstd

operating system

Linux blueberry 6.8.9 #1-NixOS SMP PREEMPT_DYNAMIC Thu May 2 14:35:35 UTC 2024 x86_64 GNU/Linux

bagder added a commit that referenced this issue Aug 16, 2024
And up the widest supported bar to 400 columns.

Fixes #14565
Reported-by: lolbinarycat on github
@bagder bagder closed this as completed in 8f562f7 Aug 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging a pull request may close this issue.

2 participants