diff --git a/src/lib.rs b/src/lib.rs index 76a323f..49a1670 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -12,7 +12,7 @@ pub mod shell { use termion::event::Key; use termion::input::TermRead; use termion::raw::IntoRawMode; - use termion::{color, cursor, cursor::DetectCursorPos}; + use termion::{color, cursor}; use unicode_segmentation::UnicodeSegmentation; mod history; @@ -212,7 +212,7 @@ pub mod shell { //clears currently written command from the screen //...NOT from the variable ! let mut stdout = stdout().into_raw_mode().unwrap(); - for i in 0..*max_pos { + for _i in 0..*max_pos { write!(stdout, "{}", cursor::Left(1)); write!(stdout, "\x1b[K").unwrap(); }