bacon 2.2.0

background rust compiler
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use {
    crate::*,
    anyhow::Result,
    crossterm::{cursor, execute, terminal},
};

pub fn goto(w: &mut W, y: u16) -> Result<()> {
    execute!(w, cursor::MoveTo(0, y))?;
    Ok(())
}
pub fn clear_line(w: &mut W) -> Result<()> {
    execute!(w, terminal::Clear(terminal::ClearType::UntilNewLine))?;
    Ok(())
}