mirror of
https://github.com/jht5945/rust_util.git
synced 2025-12-27 07:30:05 +08:00
update print_lastline
This commit is contained in:
@@ -148,7 +148,7 @@ pub fn flush_stdout() {
|
||||
}
|
||||
|
||||
pub fn print_lastline(line: &str) {
|
||||
print!("\x1b[100D{}\x1b[K", line);
|
||||
print!("\x1b[1000D{}\x1b[K", line);
|
||||
flush_stdout();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user