Add preliminary VGA color support.
(This API is not complete)
This commit is contained in:
parent
431779995a
commit
510a596849
@ -283,6 +283,10 @@ pub fn _print(args: fmt::Arguments) {
|
||||
WRITER.lock().write_fmt(args).unwrap();
|
||||
}
|
||||
|
||||
pub fn set_colors(fg: ForegroundColor, bg: Color) {
|
||||
WRITER.lock().color_code = ColorCode::new(fg, bg);
|
||||
}
|
||||
|
||||
lazy_static! {
|
||||
pub static ref WRITER: Mutex<Writer> = Mutex::new(Writer::new(
|
||||
ColorCode::new(ForegroundColor::Yellow, Color::Blue),
|
||||
|
Loading…
Reference in New Issue
Block a user