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

Function clear_screen

src/vga_buffer.rs:161–169  ·  view source on GitHub ↗

Clear screen-

()

Source from the content-addressed store, hash-verified

159
160/// Clear screen-
161pub fn clear_screen() {
162 // iterate all rows and clear them all
163 for i in 0..BUFFER_HEIGHT {
164 WRITER.lock().clear_row(i);
165 }
166
167 // reset the row position
168 WRITER.lock().row_positon = 0;
169}
170
171impl fmt::Write for Writer {
172 fn write_str(&mut self, s: &str) -> ::core::fmt::Result {

Callers 1

rust_mainFunction · 0.85

Calls 1

clear_rowMethod · 0.80

Tested by

no test coverage detected