Position cursor via buffer

This commit is contained in:
Joscha 2022-05-21 21:07:24 +02:00
parent bbaea3b5bf
commit cc2f102141
3 changed files with 51 additions and 9 deletions

View file

@ -24,6 +24,7 @@ fn main() -> io::Result<()> {
"Press any key to exit",
ContentStyle::default().on_dark_blue(),
);
b.set_cursor(Some(Pos::new(16, 0)));
// Show the buffer's contents on screen
term.present()?;