Termion v0.1.0 Release Notes

  • This sample table gives an idea of how to go bu converting to the new major 🔖 version of Termion.

    0.1.0 1.0.0
    use termion::IntoRawMode use termion::raw::IntoRawMode
    stdout.color(color::Red); write!(stdout, "{}", color::Fg(color::Red));
    stdout.color_bg(color::Red); write!(stdout, "{}", color::Bg(color::Red));
    stdout.goto(x, y); write!(stdout, "{}", cursor::Goto(x, y));
    color::rgb(r, g, b); color::Rgb(r, g, b) (truecolor)
    x.with_mouse() MouseTerminal::from(x)