aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib.rs
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2021-03-09 02:33:01 -0500
committerJesse Luehrs <doy@tozt.net>2021-03-09 02:40:29 -0500
commitdd845e949ac59e08bf12d0fcac8b4069c5c7645c (patch)
tree3f9dc84ac00fb692f80726c3539084185a9f88fa /src/lib.rs
parent3a92d03b3c47926b0eeaac8f301833b23d68a6ec (diff)
downloadtextmode-dd845e949ac59e08bf12d0fcac8b4069c5c7645c.tar.gz
textmode-dd845e949ac59e08bf12d0fcac8b4069c5c7645c.zip
add async implementation of Input
this is just copied and pasted for now, need to figure out how to generate one from the other
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs13
1 files changed, 10 insertions, 3 deletions
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";