forked from Bananymous/banan-os
Kernel: Add support for text mode terminal
This probably won't be used at all but it was so simple and made me do really nice refactorings so i decided to add it :)
This commit is contained in:
@@ -41,6 +41,8 @@ namespace Kernel
|
||||
g_boot_info.framebuffer.bpp = framebuffer_tag.framebuffer_bpp;
|
||||
if (framebuffer_tag.framebuffer_type == MULTIBOOT2_FRAMEBUFFER_TYPE_RGB)
|
||||
g_boot_info.framebuffer.type = FramebufferInfo::Type::RGB;
|
||||
else if (framebuffer_tag.framebuffer_type == MULTIBOOT2_FRAMEBUFFER_TYPE_TEXT)
|
||||
g_boot_info.framebuffer.type = FramebufferInfo::Type::Text;
|
||||
else
|
||||
g_boot_info.framebuffer.type = FramebufferInfo::Type::Unknown;
|
||||
}
|
||||
@@ -107,6 +109,8 @@ namespace Kernel
|
||||
g_boot_info.framebuffer.bpp = framebuffer.bpp;
|
||||
if (framebuffer.type == BANAN_BOOTLOADER_FB_RGB)
|
||||
g_boot_info.framebuffer.type = FramebufferInfo::Type::RGB;
|
||||
else if (framebuffer.type == BANAN_BOOTLOADER_FB_TEXT)
|
||||
g_boot_info.framebuffer.type = FramebufferInfo::Type::Text;
|
||||
else
|
||||
g_boot_info.framebuffer.type = FramebufferInfo::Type::Unknown;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user