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
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