From 4490ced4e32f47863539d1d346e1619ba581322b Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Sat, 13 Nov 2021 15:23:43 -0500 Subject: add move_relative --- examples/basic.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples') 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(); -- cgit v1.2.3-54-g00ecf