Skip to content

Commit

Permalink
Actually keep the cursor on the right terminal side
Browse files Browse the repository at this point in the history
  • Loading branch information
sigmaSd authored and djc committed Jan 26, 2022
1 parent af3bd31 commit 8ff5e6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/draw_target.rs
Expand Up @@ -399,7 +399,7 @@ impl ProgressDrawState {
// Keep the cursor on the right terminal side
// So that next user writes/prints will happen on the next line
let line_width = console::measure_text_width(line);
term.move_cursor_right(usize::from(term.size().1) - line_width)?;
term.write_str(&" ".repeat(usize::from(term.size().1) - line_width))?;
}
}
Ok(())
Expand Down

0 comments on commit 8ff5e6f

Please sign in to comment.