Classic text colors.
This commit is contained in:
parent
fffa6d99ae
commit
a84b5003f4
@ -14,9 +14,9 @@ void
|
||||
dump_multiboot(
|
||||
struct multiboot *mboot_ptr
|
||||
) {
|
||||
resettextcolor();
|
||||
brighttextcolor();
|
||||
kprintf("MULTIBOOT header at 0x%x:\n", (uintptr_t)mboot_ptr);
|
||||
settextcolor(7,0);
|
||||
resettextcolor();
|
||||
kprintf("Flags : 0x%x ", mboot_ptr->flags);
|
||||
kprintf("Mem Lo: 0x%x ", mboot_ptr->mem_lower);
|
||||
kprintf("Mem Hi: 0x%x ", mboot_ptr->mem_upper);
|
||||
@ -41,7 +41,7 @@ dump_multiboot(
|
||||
kprintf("VBE se: 0x%x ", mboot_ptr->vbe_interface_seg);
|
||||
kprintf("VBE of: 0x%x ", mboot_ptr->vbe_interface_off);
|
||||
kprintf("VBE le: 0x%x\n", mboot_ptr->vbe_interface_len);
|
||||
resettextcolor();
|
||||
brighttextcolor();
|
||||
if (mboot_ptr->flags & (1 << 2)) {
|
||||
kprintf("Started with: %s\n", (char *)mboot_ptr->cmdline);
|
||||
}
|
||||
@ -65,5 +65,6 @@ dump_multiboot(
|
||||
}
|
||||
}
|
||||
}
|
||||
resettextcolor();
|
||||
}
|
||||
|
||||
|
@ -209,6 +209,11 @@ settextcolor(
|
||||
*/
|
||||
void
|
||||
resettextcolor() {
|
||||
settextcolor(7,0);
|
||||
}
|
||||
|
||||
void
|
||||
brighttextcolor() {
|
||||
settextcolor(15,0);
|
||||
}
|
||||
|
||||
|
@ -36,6 +36,7 @@ extern void cls();
|
||||
extern void puts(char *str);
|
||||
extern void settextcolor(unsigned char forecolor, unsigned char backcolor);
|
||||
extern void resettextcolor();
|
||||
extern void brighttextcolor();
|
||||
extern void init_video();
|
||||
extern void placech(unsigned char c, int x, int y, int attr);
|
||||
extern void writechf(unsigned char c);
|
||||
|
Loading…
Reference in New Issue
Block a user