Kernel: Abstract TTY to use new VESA

This commit is contained in:
Bananymous
2022-12-15 19:05:07 +02:00
parent 930661619b
commit 9274c9ee2f
5 changed files with 284 additions and 143 deletions

View File

@@ -0,0 +1,36 @@
#pragma once
#include <stdint.h>
namespace VESA
{
enum Color : uint8_t
{
BLACK = 0,
BLUE = 1,
GREEN = 2,
CYAN = 3,
RED = 4,
MAGENTA = 5,
BROWN = 6,
LIGHT_GREY = 7,
DARK_GREY = 8,
LIGHT_BLUE = 9,
LIGHT_GREEN = 10,
LIGHT_CYAN = 11,
LIGHT_RED = 12,
LIGHT_MAGENTA = 13,
LIGHT_BROWN = 14,
WHITE = 15,
};
bool Initialize();
void PutEntryAt(char, uint32_t, uint32_t, Color, Color);
void Clear(Color);
void ScrollLine(uint32_t line);
uint32_t GetWidth();
uint32_t GetHeight();
}