diff options
| author | Loic Guegan <manzerbredes@mailbox.org> | 2021-04-29 08:49:41 +0200 |
|---|---|---|
| committer | Loic Guegan <manzerbredes@mailbox.org> | 2021-04-29 08:49:41 +0200 |
| commit | fde8a1ab65d5e33d90123a3aaa9b5c15e249689f (patch) | |
| tree | 14134c0c2f322cbcba0989b78bd7057f76c157c3 /src/drivers/vgatext.hpp | |
| parent | 067d6e340be698b0e26b7732215a1969e0e683f3 (diff) | |
Debug, add memory print driver
Diffstat (limited to 'src/drivers/vgatext.hpp')
| -rw-r--r-- | src/drivers/vgatext.hpp | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/src/drivers/vgatext.hpp b/src/drivers/vgatext.hpp new file mode 100644 index 0000000..2111691 --- /dev/null +++ b/src/drivers/vgatext.hpp @@ -0,0 +1,35 @@ +#pragma once + +#include "core/types.hpp" + +typedef enum VIDEO_COLORS { + BLACK=0, BLUE=1, GREEN=2,CYAN=3, RED=4,PURPLE=5,BROWN=6,GRAY=7, + DARK_GRAY=8,LIGHT_BLUE=9,LIGHT_GREEN=10,LIGHT_CYAN=11,LIGHT_RED=12,LIGHT_PURPLE=13,YELLOW=14,WHITE=15 + +} VIDEO_COLORS; + +typedef struct VIDEO_STATE { + u8 *mem; + u8 col; + u8 line; + u8 bg; + u8 fg; +} VIDEO_STATE; + +void vgatext_init(); + +/** + * Print char + */ +void vgatext_putchar(char); + +/** + * Scroll the framebuffer from one line + */ +void vgatext_scrollup(); + +/** + * Clear all char from the framebuffer + */ +void vgatext_clear(); + |
