Add and use a clear_screen function

This commit is contained in:
Philipp Oppermann
2015-10-27 20:47:58 +01:00
parent 54b47aaac1
commit c36a3d19d2
2 changed files with 7 additions and 0 deletions

View File

@@ -23,6 +23,12 @@ macro_rules! print {
});
}
pub fn clear_screen() {
for _ in 0..BUFFER_HEIGHT {
println!("");
}
}
#[allow(dead_code)]
#[repr(u8)]
pub enum Color {