MCPcopy Create free account
hub / github.com/LibertyOS-Development/kernel / color_set

Method color_set

src/graphics/vga/mod.rs:178–181  ·  view source on GitHub ↗

Set color

(&mut self, fg: Color, bg: Color)

Source from the content-addressed store, hash-verified

176
177 // Set color
178 pub fn color_set(&mut self, fg: Color, bg: Color)
179 {
180 self.colorcode = ColorCode::new(fg, bg);
181 }
182
183 // Cursor position
184 fn cpos(&self) -> (usize, usize)

Callers 2

csi_dispatchMethod · 0.80
setcolorFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected