Improve file(DOWNLOAD SHOW_PROGRESS) output
Currently, the file download progress indicator enabled by
SHOW_PROGRESS shows a new line for each percentage calculated percentage which is extremely verbose. This is trivially fixed by appending an ANSI escape sequence that moves the cursor up one line after a progress message is written which makes the progress indicator use a single line that is overwritten each time a new percentage is calculated.
However, Windows only recently gained support for ANSI escape sequences. Is there a precedence for using ANSI escape sequences in CMake's output or are there any alternatives that can be used to avoid printing a new line for each progress message?