diff options
author | Jesse Luehrs <doy@tozt.net> | 2021-03-09 03:19:05 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2021-03-09 03:19:05 -0500 |
commit | 898ca615b5d573120a62cc01b2fb43f1d707f69f (patch) | |
tree | d525e012441c2104e9a5f2e4cae87c2396162836 /examples | |
parent | 51e877d0d0fcd122d1cb0934639e43579a380f63 (diff) | |
download | textmode-898ca615b5d573120a62cc01b2fb43f1d707f69f.tar.gz textmode-898ca615b5d573120a62cc01b2fb43f1d707f69f.zip |
make raw_guard also async
i think tcsetattr etc can actually block in some cases
Diffstat (limited to 'examples')
-rw-r--r-- | examples/tmux.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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 { |