diff options
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs new file mode 100644 index 0000000..7c12a7c --- /dev/null +++ b/src/main.rs @@ -0,0 +1,14 @@ +use std::io::{Write, stdout}; +use crossterm::{cursor, execute, terminal}; + +fn main() { + let mut stdout = stdout(); + + execute!(stdout, terminal::Clear(terminal::ClearType::All)).unwrap(); + execute!(stdout, cursor::MoveTo(5, 5)).unwrap(); + write!(stdout, "wowee").unwrap(); + execute!(stdout, cursor::MoveTo(5, 7)).unwrap(); + write!(stdout, "eewow").unwrap(); + execute!(stdout, cursor::MoveTo(5, 7)).unwrap(); + write!(stdout, "WOWEE").unwrap(); +} |
