mirror of
https://github.com/curl/curl.git
synced 2026-08-25 02:03:36 +03:00
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:
parent
97c417ae28
commit
2efc111ea4
3 changed files with 49 additions and 37 deletions
|
|
@ -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
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue