From 898ca615b5d573120a62cc01b2fb43f1d707f69f Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Tue, 9 Mar 2021 03:19:05 -0500 Subject: make raw_guard also async i think tcsetattr etc can actually block in some cases --- examples/tmux.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples') diff --git a/examples/tmux.rs b/examples/tmux.rs index d5969e3..877285b 100644 --- a/examples/tmux.rs +++ b/examples/tmux.rs @@ -303,7 +303,7 @@ struct Tmux { impl Tmux { async fn new() -> Self { - let (input, _raw) = textmode::Input::new().unwrap(); + let (input, _raw) = textmode::Input::new().await.unwrap(); let (tm, _screen) = textmode::Output::new().await.unwrap(); let state = State::new(); Self { -- cgit v1.2.3-54-g00ecf