1
0
mirror of https://github.com/jht5945/rust_util.git synced 2025-12-27 15:40:03 +08:00

update print_lastline

This commit is contained in:
2019-07-22 00:15:53 +08:00
parent f6268bd6b0
commit 6a08f8f92f

View File

@@ -148,7 +148,7 @@ pub fn flush_stdout() {
} }
pub fn print_lastline(line: &str) { pub fn print_lastline(line: &str) {
print!("\x1b[100D{}\x1b[K", line); print!("\x1b[1000D{}\x1b[K", line);
flush_stdout(); flush_stdout();
} }