Made the monitor actually usable now
This commit is contained in:
@@ -81,12 +81,11 @@ impl Monitor {
|
||||
|
||||
for (hook_key, _) in &self.hooks {
|
||||
if hook_key == &key {
|
||||
stdout.write_all(b"\r\n")?;
|
||||
break 'main Ok(key)
|
||||
}
|
||||
}
|
||||
println!("{:?}\r", key);
|
||||
} else {
|
||||
std::thread::sleep(Duration::from_millis(100));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user