From dd845e949ac59e08bf12d0fcac8b4069c5c7645c Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Tue, 9 Mar 2021 02:33:01 -0500 Subject: add async implementation of Input this is just copied and pasted for now, need to figure out how to generate one from the other --- src/lib.rs | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'src/lib.rs') diff --git a/src/lib.rs b/src/lib.rs index 1023167..5fc2429 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,14 +1,21 @@ #![allow(clippy::collapsible_if)] -pub mod color; - pub mod blocking; -pub use crate::blocking::input::Key; + +pub mod color; +mod key; +pub use key::Key; +mod raw_guard; +pub use raw_guard::RawGuard; #[cfg(feature = "async")] mod output; #[cfg(feature = "async")] pub use output::{Output, ScreenGuard}; +#[cfg(feature = "async")] +mod input; +#[cfg(feature = "async")] +pub use input::Input; const INIT: &[u8] = b"\x1b7\x1b[?47h\x1b[2J\x1b[H\x1b[?25h"; const DEINIT: &[u8] = b"\x1b[?47l\x1b8\x1b[?25h"; -- cgit v1.2.3-54-g00ecf