diff options
author | Jesse Luehrs <doy@tozt.net> | 2021-03-07 18:38:22 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2021-03-07 18:38:22 -0500 |
commit | ae4f5469711705e2686fd2be65e4fbc700f93e12 (patch) | |
tree | 2d525a7544e6ddfcd4851aedbfa219ad85e965e4 /examples/basic.rs | |
parent | 4a3d1dd61bd2e32b26206f035406fd655d040087 (diff) | |
download | textmode-ae4f5469711705e2686fd2be65e4fbc700f93e12.tar.gz textmode-ae4f5469711705e2686fd2be65e4fbc700f93e12.zip |
separate out the guards from the main structs
Diffstat (limited to 'examples/basic.rs')
-rw-r--r-- | examples/basic.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/basic.rs b/examples/basic.rs index fb13d89..f3f846d 100644 --- a/examples/basic.rs +++ b/examples/basic.rs @@ -1,7 +1,7 @@ use textmode::Textmode as _; fn main() { - let mut tm = textmode::blocking::Output::new().unwrap(); + let (mut tm, _guard) = textmode::blocking::Output::new().unwrap(); tm.move_to(5, 5); tm.write_str("foo"); |