aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
authorJames Campos <james.r.campos@gmail.com>2021-07-31 04:15:54 -0700
committerJames Campos <james.r.campos@gmail.com>2021-07-31 04:15:54 -0700
commit95c4c859e920e075616fc49d877f6d70cd56d70f (patch)
treea789168b44cc2c6b599a88acf98e34b0544b066d /src/main.rs
parent8f362702675e56cfcf38c78e78516dd64f91f3c8 (diff)
downloadbk-95c4c859e920e075616fc49d877f6d70cd56d70f.tar.gz
internal
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main.rs b/src/main.rs
index 4ed14b2..57aa177 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -1,6 +1,6 @@
use crossterm::{
cursor,
- event::{DisableMouseCapture, EnableMouseCapture, Event},
+ event::{self, DisableMouseCapture, EnableMouseCapture, Event},
queue,
style::{self, Color::Rgb, Colors, Print, SetColors},
terminal,
@@ -153,7 +153,7 @@ impl Bk<'_> {
bk
}
- fn run(&mut self) -> crossterm::Result<()> {
+ fn run(&mut self) -> io::Result<()> {
let mut stdout = io::stdout();
queue!(
stdout,
@@ -180,11 +180,11 @@ impl Bk<'_> {
render(self);
loop {
- match crossterm::event::read()? {
+ match event::read()? {
Event::Key(e) => self.view.on_key(self, e.code),
Event::Mouse(e) => {
// XXX idk seems lame
- if e.kind == crossterm::event::MouseEventKind::Moved {
+ if e.kind == event::MouseEventKind::Moved {
continue;
}
self.view.on_mouse(self, e);