MCPcopy Create free account
hub / github.com/bendudson/EuraliOS / clear_row

Method clear_row

kernel/src/vga_buffer.rs:90–98  ·  view source on GitHub ↗
(&mut self, row: usize)

Source from the content-addressed store, hash-verified

88 }
89
90 fn clear_row(&mut self, row: usize) {
91 let blank = ScreenChar {
92 ascii_character: b' ',
93 color_code: self.color_code,
94 };
95 for col in 0..BUFFER_WIDTH {
96 self.buffer.chars[row][col].write(blank);
97 }
98 }
99
100 pub fn write_string(&mut self, s: &str) {
101 for byte in s.bytes() {

Callers 1

new_lineMethod · 0.80

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected