peredOS/drivers/vga.h
2026-07-01 18:42:51 +03:00

28 lines
947 B
C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#ifndef VGA_H
#define VGA_H
// Халяльная палитра цветов VGA текстового режима
#define VGA_COLOR_BLACK 0x0
#define VGA_COLOR_GREEN 0x2
#define VGA_COLOR_RED 0x4
#define VGA_COLOR_LIGHT_GRAY 0x7
#define VGA_COLOR_LIGHT_GREEN 0xA
#define VGA_COLOR_LIGHT_RED 0xC
#define VGA_COLOR_WHITE 0xF
// Инициализация драйвера и очистка экрана
void vga_init(void);
// Установка текущего цвета для последующего вывода
void vga_set_color(char fg, char bg);
// Вывод одной буквы в текущую позицию курсора
void vga_putchar(char c);
// Вывод полноценной строки
void vga_print(const char *str);
// Вывод строки с автоматическим переносом на новую линию
void vga_println(const char *str);
#endif