9#ifndef MAXOS_DRIVERS_CONSOLE_TEXTMODECONSOLE_H
10#define MAXOS_DRIVERS_CONSOLE_TEXTMODECONSOLE_H
17namespace MaxOS::drivers::console {
25 uint16_t* m_video_memory { (uint16_t*) 0xB8000 };
31 uint16_t
width()
final;
base class for all drivers, handles the activation, deactivation, initialisation and reset of the dri...
Abstract class for a console, allows for the printing of characters and strings with colours.
Driver for the text mode console, handles the printing of characters and strings to the screen using ...
void put_character(uint16_t x, uint16_t y, char c) final
Places a character at the specified location if it is in bounds.
common::ConsoleColour get_background_color(uint16_t x, uint16_t y) final
Gets the background color at the specified location.
void set_background_color(uint16_t x, uint16_t y, common::ConsoleColour) final
Sets the background color at the specified location.
common::ConsoleColour get_foreground_color(uint16_t x, uint16_t y) final
Gets the foreground color at the specified location.
uint16_t width() final
Gets the width of the console.
uint16_t height() final
Gets the height of the console.
void set_foreground_color(uint16_t x, uint16_t y, common::ConsoleColour) final
Sets the foreground color at the specified location.
char get_character(uint16_t x, uint16_t y) final
Gets the character at the specified location.
ConsoleColour
Enumeration of console colour codes.
Defines a Console class for handling text-based console output with colour support.
Defines a base Driver class and DriverManager for managing drivers.