|
From: | Gisle Vanem |
Subject: | Re: [Bug-wget] [Bulk] 1.16, w64: filename marquee one character too short; overall dipslay line one character too wide |
Date: | Mon, 19 Oct 2015 20:35:56 +0200 |
"AJ" <address@hidden>
2.) Displaying "eta" uses too much space when both minutes and seconds have 2-digit numbers. Thus, the entire line needs 80 characters and forces a linewrap, which turns out into NOT updating the line per progress step, but instead prints new lines all over.
I believe this is due to the diffence in behaviour of bash etc. and WinCon on handling a character at rightmost edge. Windows will wrap the cursor and go to the next line. Bash won't act until it sees the next character AFAICR. You could try this patch: --- a/utils.c 2015-10-19 20:20:20 +0000 +++ b/utils.c 2015-10-19 20:26:34 +0000 @@ -1827,7 +1827,7 @@ CONSOLE_SCREEN_BUFFER_INFO csbi; if (!GetConsoleScreenBufferInfo (GetStdHandle (STD_ERROR_HANDLE), &csbi)) return 0; - return csbi.dwSize.X; + return csbi.dwSize.X - 1; #else /* neither TIOCGWINSZ nor WINDOWS */ return 0; I believe a 'set LINES=79' won't work on Windows (?) --gv
[Prev in Thread] | Current Thread | [Next in Thread] |