curl: make --help adapt to the terminal width

Instead of assuming and working with 80 colums, try figuring out what
width is actually used.

Ref: #13141

Closes #13171
This commit is contained in:
Daniel Stenberg 2024-03-25 13:07:48 +01:00
parent 97c417ae28
commit 2efc111ea4
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
3 changed files with 49 additions and 37 deletions

View file

@ -40,9 +40,13 @@ struct ProgressData {
int barmove;
};
struct OperationConfig;
void progressbarinit(struct ProgressData *bar,
struct OperationConfig *config);
unsigned int get_terminal_columns(void);
/*
** callback for CURLOPT_PROGRESSFUNCTION
*/