MCPcopy Create free account
hub / github.com/Ruddle/Fomos / clear

Method clear

bootloader/kernel/src/framebuffer.rs:80–84  ·  view source on GitHub ↗

Erases all text on the screen. Resets `self.x_pos` and `self.y_pos`.

(&mut self)

Source from the content-addressed store, hash-verified

78
79 /// Erases all text on the screen. Resets `self.x_pos` and `self.y_pos`.
80 pub fn clear(&mut self) {
81 self.x_pos = BORDER_PADDING;
82 self.y_pos = BORDER_PADDING;
83 self.framebuffer.fill(0);
84 }
85
86 fn width(&self) -> usize {
87 self.info.width

Callers 4

_startFunction · 0.80
newMethod · 0.80
newMethod · 0.80
write_charMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected