blu_os
Loading...
Searching...
No Matches
vga.h
1//
2// Created by dylan on 07/07/2026.
3//
4
5#ifndef BLU_OS_VGA_H
6#define BLU_OS_VGA_H
7
8#include <stddef.h>
9#include <stdint.h>
10
11#define VGA_WIDTH 80
12#define VGA_HEIGHT 25
13
14enum VGAColor {
15 VGA_COLOR_BLACK = 0,
16 VGA_COLOR_BLUE = 1,
17 VGA_COLOR_GREEN = 2,
18 VGA_COLOR_CYAN = 3,
19 VGA_COLOR_RED = 4,
20 VGA_COLOR_MAGENTA = 5,
21 VGA_COLOR_BROWN = 6,
22 VGA_COLOR_LIGHT_GREY = 7,
23 VGA_COLOR_DARK_GREY = 8,
24 VGA_COLOR_LIGHT_BLUE = 9,
25 VGA_COLOR_LIGHT_GREEN = 10,
26 VGA_COLOR_LIGHT_CYAN = 11,
27 VGA_COLOR_LIGHT_RED = 12,
28 VGA_COLOR_LIGHT_MAGENTA = 13,
29 VGA_COLOR_LIGHT_BROWN = 14,
30 VGA_COLOR_WHITE = 15
31};
32
33uint8_t vgaEntryColor(enum VGAColor fg, enum VGAColor bg);
34
35uint16_t vgaEntry(uint8_t uc, uint8_t color);
36
37#endif //BLU_OS_VGA_H
Common definitions for C programs.
Fixed-width integer types.