about summary refs log tree commit diff
path: root/src/display/mod.rs
blob: 5dba48b44d9a9b4e9e75dc15547a30d42bb8fc1b (plain) (blame)
1
2
3
4
5
6
7
8
9
pub mod draw_box;
pub mod utils;
pub use draw_box::{make_box, BoxStyle};
use std::io::{self, Write};
use termion::{clear, cursor, style};

pub fn clear<T: Write>(out: &mut T) -> io::Result<()> {
    write!(out, "{}{}{}", clear::All, style::Reset, cursor::Goto(1, 1))
}