aboutsummaryrefslogtreecommitdiffstats
path: root/examples/basic.rs
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2021-03-06 18:45:50 -0500
committerJesse Luehrs <doy@tozt.net>2021-03-06 18:45:50 -0500
commita4bca446049fd488af29dd5ec26f953845e8e4fe (patch)
treefa7f129e5b27c00f29b4f33edbc31f2c68d89fda /examples/basic.rs
parente358c58826b1732763970848c0c6d77f12ef5e5a (diff)
downloadtextmode-a4bca446049fd488af29dd5ec26f953845e8e4fe.tar.gz
textmode-a4bca446049fd488af29dd5ec26f953845e8e4fe.zip
split into sync and async implementations
Diffstat (limited to 'examples/basic.rs')
-rw-r--r--examples/basic.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/basic.rs b/examples/basic.rs
index 1026834..150c9b0 100644
--- a/examples/basic.rs
+++ b/examples/basic.rs
@@ -1,5 +1,7 @@
+use textmode::Textmode as _;
+
fn main() {
- let mut tm = textmode::Textmode::new().unwrap();
+ let mut tm = textmode::sync::Textmode::new().unwrap();
tm.move_to(5, 5);
tm.write_str("foo");