Add a print_something function to print an H in the lower left

This commit is contained in:
Philipp Oppermann
2017-04-12 19:21:54 +02:00
parent 46d47f8d2e
commit 6aa3f67331
2 changed files with 11 additions and 11 deletions

View File

@@ -79,3 +79,13 @@ impl Writer {
fn new_line(&mut self) {/* TODO */}
}
pub fn print_something() {
let mut writer = Writer {
column_position: 0,
color_code: ColorCode::new(Color::LightGreen, Color::Black),
buffer: unsafe { Unique::new(0xb8000 as *mut _) },
};
writer.write_byte(b'H');
}