mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-18 15:27:50 +00:00
Add a print_something function to print an H in the lower left
This commit is contained in:
@@ -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');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user