curl executable in cmd.exe terminal does not display download interface correctly. #13156

Closed
opened 2026-01-31 03:35:11 +00:00 by claunia · 4 comments
Owner

Originally created by @hello-smile6 on GitHub (Mar 23, 2021).

Windows Terminal version (or Windows build number)

1.7.572.0

Other Software

The curl executable for Windows (built-in)

Steps to reproduce

Download a large file using curl with the smallest window size possible.

Expected Behavior

A normal download.

Actual Behavior

The download numbers were skewed.

image

Originally created by @hello-smile6 on GitHub (Mar 23, 2021). ### Windows Terminal version (or Windows build number) 1.7.572.0 ### Other Software The curl executable for Windows (built-in) ### Steps to reproduce Download a large file using curl with the smallest window size possible. ### Expected Behavior A normal download. ### Actual Behavior The download numbers were skewed. ![image](https://user-images.githubusercontent.com/73048226/112198952-e4032c80-8bca-11eb-8200-029723c05e65.png)
claunia added the Needs-TriageNeeds-Tag-Fix labels 2026-01-31 03:35:11 +00:00
Author
Owner

@DHowett commented on GitHub (Mar 23, 2021):

It is because the window is not wide enough to display the download status. This is just how curl works.

@DHowett commented on GitHub (Mar 23, 2021): It is because the window is not wide enough to display the download status. This is just how curl works.
Author
Owner

@hello-smile6 commented on GitHub (Mar 23, 2021):

@DHowett Could the command line spam be fixed, though?

@hello-smile6 commented on GitHub (Mar 23, 2021): @DHowett Could the command line spam be fixed, though?
Author
Owner

@DHowett commented on GitHub (Mar 23, 2021):

No. It is a direct result of curl not having enough space to print the status bar.

The way curl prints the status bar is by sending the cursor to the beginning of the line and printing a long line of text.

When the line wraps, the first step ("go to beginning of line") gets the beginning of the wrapped portion of the line.

It then just... does that over and over again.

This is how it was implemented by curl the open-source project. It is not special for the Windows version of curl.

@DHowett commented on GitHub (Mar 23, 2021): No. It is a _direct_ result of curl not having enough space to print the status bar. The way curl prints the status bar is by sending the cursor to the beginning of the line and printing a long line of text. When the line wraps, the first step ("go to beginning of line") gets the _beginning of the wrapped portion of the line_. It then just... does that over and over again. This is how it was implemented by curl the open-source project. It is not special for the Windows version of curl.
Author
Owner

@DHowett commented on GitHub (Mar 23, 2021):

If you want to suppress the spam, use curl -s (or --silent)

@DHowett commented on GitHub (Mar 23, 2021): If you want to suppress the spam, use `curl -s` (or `--silent`)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#13156