[lldb] Always move the cursor back after printing progress

This got lost while iterating on the patch. We need to always move the
cursor to the front of the line so that if something else
(asynchronously) prints to the debugger's output it overwrites the
progress message.
This commit is contained in:
Jonas Devlieghere 2022-03-08 18:35:06 -08:00
parent 097d46f41c
commit 116715270d
No known key found for this signature in database
GPG Key ID: 49CC0BD90FDEED4D
1 changed files with 1 additions and 1 deletions

View File

@ -1813,7 +1813,7 @@ void Debugger::HandleProgressEvent(const lldb::EventSP &event_sp) {
"%s", ansi::FormatAnsiTerminalCodes(ansi_suffix, use_color).c_str());
// Clear until the end of the line.
output.Printf("\x1B[K");
output.Printf("\x1B[K\r");
// Flush the output.
output.Flush();