Skip to content

Commit

Permalink
refac: replace HC with move_cursor method
Browse files Browse the repository at this point in the history
  • Loading branch information
a8m committed Oct 18, 2016
1 parent 10ce2aa commit 8cbeed9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/multi.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
use pb::ProgressBar;
use std::str::from_utf8;
use tty::move_cursor_up;
use std::io::{Stdout, Result, Write};
use std::sync::mpsc;
use std::sync::mpsc::{Sender, Receiver};
Expand Down Expand Up @@ -202,9 +203,8 @@ impl<T: Write> MultiBar<T> {

// and draw
let mut out = String::new();
// TODO: implement tty::move_cursor_up(lines), and use it here
if !first {
out.push_str(&format!("\x1B[{}A", self.nlines));
out += &move_cursor_up(self.nlines);
} else {
first = false;
}
Expand Down

0 comments on commit 8cbeed9

Please sign in to comment.