Skip to content

Kinnison/fix progress on windows#1788

Merged
kinnison merged 2 commits intorust-lang:stablefrom
kinnison:kinnison/fix-progress-on-windows
Apr 22, 2019
Merged

Kinnison/fix progress on windows#1788
kinnison merged 2 commits intorust-lang:stablefrom
kinnison:kinnison/fix-progress-on-windows

Conversation

@kinnison
Copy link
Copy Markdown
Contributor

Following on from testing the 1.18.0 RC on Windows, this is needed to fix line erase

In rust-lang#1781, we switched to using `delete_line()` but unfortunately
that turns out to not work very well on Windows.  So this commit
turns us back to using spaces to erase things, but in a way which
ought to be moderately more robust than before.  There's still
no guarantee we're doing it right, but at least this time if
the terminal is approximately wide enough for the bar and no more,
we won't be flowing onto the next line with loads of spaces after
the rest of the tracker.

Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
The amended erase was insufficient, this revert of term to 0.5.1 was
also required otherwise the end-of-line was oddly miscoloured.

Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
@Skynoodle
Copy link
Copy Markdown

Tested and working on Windows 10 with both Powershell and CMD.
Looks fine to me 👍

@kinnison
Copy link
Copy Markdown
Contributor Author

Awesome, thank you @Skynoodle

@kinnison kinnison merged commit a3907d6 into rust-lang:stable Apr 22, 2019
@kinnison kinnison deleted the kinnison/fix-progress-on-windows branch April 22, 2019 20:42
@tesuji tesuji mentioned this pull request Sep 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants