Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/LibertyOS-Development/kernel
/ setcolor
Function
setcolor
src/graphics/vga/mod.rs:798–804 ·
view source on GitHub ↗
Set color
(fg: Color, bg: Color)
Source
from the content-addressed store, hash-verified
796
797
// Set color
798
pub fn setcolor(fg: Color, bg: Color)
799
{
800
interrupts::without_interrupts(||
801
{
802
WRITER.lock().color_set(fg, bg)
803
})
804
}
805
806
807
// Set font
Callers
nothing calls this directly
Calls
2
color_set
Method · 0.80
lock
Method · 0.80
Tested by
no test coverage detected