9#ifndef KERNEL_DRIVERS_CONSOLE_H
10#define KERNEL_DRIVERS_CONSOLE_H
12#include <limine/limine.h>
72extern uint8_t _binary_font_psf_start[];
73extern uint8_t _binary_font_psf_end[];
97void draw_char(
char c, uint8_t col, uint8_t row);
166void fill32(uint32_t *dest, uint32_t value,
size_t count);
struct rgb get_default_bg_color(void)
Gets the default bg colour.
struct rgb get_fg_color(void)
Gets the current fg colour.
struct rgb get_bg_color(void)
Gets the current bg colour.
struct rgb get_default_fg_color(void)
Gets the default fg colour.
void fill32(uint32_t *dest, uint32_t value, size_t count)
Fills 32 bytes count times starting at dest with value.
void set_bg_color(struct rgb color)
Sets the background colour.
void console_putc(char c)
Arranges the cursor and prints characters.
void draw_char(char c, uint8_t col, uint8_t row)
Draws a character to the console.
void scroll_up(void)
Scrolls the whole console up.
bool get_console_status(void)
Returns the status of the console (initialized or uninitialized).
void console_puts(char *str)
Prints a non-formatted string.
void console_clear(void)
Clears the console (fills with bg color).
void set_fg_color(struct rgb color)
Sets the foreground colour.
void console_print_int(uint64_t value)
Prints an int to the console.
void console_init(void)
Initializes the console struct and fills all the properties.
Utilities for memory and string operations.
Console structure, holds all the information about the console.
struct psf1_header font_psf1_info
PSF1 Header (set if used).
struct rgb bg_color
Current Background color.
struct limine_framebuffer * fb
Framebuffer address.
struct psf2_header font_psf2_info
PSF2 Header (set if used).
struct rgb original_bg_color
The original background color.
struct rgb original_fg_color
The original foreground color.
struct rgb fg_color
Current Foreground color.
uint8_t cols
Console glyph size.
uint8_t cursor_row
Current cursor position.