aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2021-03-09 03:19:05 -0500
committerJesse Luehrs <doy@tozt.net>2021-03-09 03:19:05 -0500
commit898ca615b5d573120a62cc01b2fb43f1d707f69f (patch)
treed525e012441c2104e9a5f2e4cae87c2396162836 /examples
parent51e877d0d0fcd122d1cb0934639e43579a380f63 (diff)
downloadtextmode-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.rs2
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 {