diff options
Diffstat (limited to 'src/input.rs')
-rw-r--r-- | src/input.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/input.rs b/src/input.rs index 1d6242e..17d08ef 100644 --- a/src/input.rs +++ b/src/input.rs @@ -1,6 +1,4 @@ -/// displays the "input" at the bottom of the screen -/// (reading is managed in the app module) -use std::io::{self}; +use std::io; use crossterm::Attribute; @@ -8,6 +6,8 @@ use crate::commands::Command; use crate::screens::Screen; use crate::skin; +/// displays the "input" at the bottom of the screen +/// (reading is managed in the app module) pub trait Input { fn write_input(&mut self, cmd: &Command) -> io::Result<()>; } @@ -16,12 +16,12 @@ impl Input for Screen { fn write_input(&mut self, cmd: &Command) -> io::Result<()> { skin::reset(); self.goto_clear(1, self.h); - self.write(&format!( + print!( "{}{} {}", self.skin.input.apply_to(&cmd.raw), Attribute::Reverse, Attribute::NoInverse, - )); + ); Ok(()) } } |