MCPcopy Create free account
hub / github.com/Infinity-OS/infinity / clear_row

Method clear_row

src/vga_buffer.rs:133–141  ·  view source on GitHub ↗

Clear a full row

(&mut self, row: usize)

Source from the content-addressed store, hash-verified

131
132 /// Clear a full row
133 fn clear_row(&mut self, row: usize) {
134 let blank = ScreenChar {
135 ascii_character: b' ',
136 color_code: self.color_code,
137 };
138 for col in 0..BUFFER_WIDTH {
139 self.buffer().chars[row][col].write(blank);
140 }
141 }
142}
143
144#[derive(Debug, Clone, Copy)]

Callers 2

new_lineMethod · 0.80
clear_screenFunction · 0.80

Calls 2

bufferMethod · 0.80
writeMethod · 0.45

Tested by

no test coverage detected