bacon 2.12.1

background rust compiler
use {
    crate::*,
    anyhow::Result,
    termimad::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(())
}