diff options
author | Jesse Luehrs <doy@tozt.net> | 2021-11-13 15:23:43 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2021-11-13 15:23:43 -0500 |
commit | 4490ced4e32f47863539d1d346e1619ba581322b (patch) | |
tree | 7439fc99bf7136eb814a66c6e6ec77a45ec98c04 /examples | |
parent | 45af291f81f33f18080532d4aacaa27074503d20 (diff) | |
download | textmode-4490ced4e32f47863539d1d346e1619ba581322b.tar.gz textmode-4490ced4e32f47863539d1d346e1619ba581322b.zip |
add move_relative
Diffstat (limited to 'examples')
-rw-r--r-- | examples/basic.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/basic.rs b/examples/basic.rs index 624292f..dce12cc 100644 --- a/examples/basic.rs +++ b/examples/basic.rs @@ -14,7 +14,7 @@ async fn run( tm.move_to(8, 8); tm.set_fgcolor(textmode::color::GREEN); tm.write_str("bar"); - tm.move_to(11, 11); + tm.move_relative(3, 0); tm.set_fgcolor(textmode::Color::Default); tm.write_str("baz"); input.read_key().await?; @@ -47,7 +47,7 @@ fn main() { tm.move_to(8, 8); tm.set_fgcolor(textmode::color::GREEN); tm.write_str("bar"); - tm.move_to(11, 11); + tm.move_relative(3, 0); tm.set_fgcolor(textmode::Color::Default); tm.write_str("baz"); input.read_key().unwrap(); |