diff options
author | Jesse Luehrs <doy@tozt.net> | 2021-03-07 19:04:34 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2021-03-07 19:04:34 -0500 |
commit | 5ec96e5d9a321a654777449bcd597ebabfaa6ffa (patch) | |
tree | 3e59cb73a6ecb1c13a64768b1761ec4423637328 /examples | |
parent | 33613d4a93bf4c0a68a38ab492688305c8e6673d (diff) | |
download | textmode-5ec96e5d9a321a654777449bcd597ebabfaa6ffa.tar.gz textmode-5ec96e5d9a321a654777449bcd597ebabfaa6ffa.zip |
reorganize a bit
Diffstat (limited to 'examples')
-rw-r--r-- | examples/tmux.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/tmux.rs b/examples/tmux.rs index b85b603..ac7205d 100644 --- a/examples/tmux.rs +++ b/examples/tmux.rs @@ -93,7 +93,7 @@ impl State { fn spawn_input_task( &self, ex: &smol::Executor<'_>, - mut input: textmode::Input, + mut input: textmode::blocking::Input, ) { let notify = self.wevents.clone(); ex.spawn(async move { @@ -309,8 +309,8 @@ impl State { #[must_use] struct Tmux { - input: textmode::Input, - _raw: textmode::RawGuard, + input: textmode::blocking::Input, + _raw: textmode::blocking::RawGuard, tm: textmode::Output, _screen: textmode::ScreenGuard, state: State, @@ -318,7 +318,7 @@ struct Tmux { impl Tmux { async fn new() -> Self { - let (input, _raw) = textmode::Input::new(); + let (input, _raw) = textmode::blocking::Input::new(); let (tm, _screen) = textmode::Output::new().await.unwrap(); let state = State::new(); Self { |