22#define SCREEN_WRAP_INDENT 4
27#define SCREEN_LINE_MAX_LENGTH (130)
32#define SCREEN_LINE_STRIDE (SCREEN_LINE_MAX_LENGTH * GLYPH_WIDTH)
void log_screen_write(const char *string, uint64_t length)
Write a string to the screen.
uint64_t log_screen_get_width(void)
Get screen width in characters.
void log_screen_init(const boot_gop_t *bootGop)
Initialize the screen logging.
void log_screen_clear(void)
Clear the screen.
uint64_t log_screen_get_height(void)
Get screen height in characters.
#define SCREEN_LINE_STRIDE
The stride of a screen line in pixels.
#define CONFIG_SCREEN_MAX_LINES
Maximum screen lines configuration.
A single line in the screen buffer.
uint64_t length
The distance from the start of the line to the end of the furthest away char, in chars.
Represents a position on the screen in character coordinates.
log_screen_pos_t invalidStart
The start of the invalid region in the buffer, forms a rectangle with invalidEnd.
log_screen_pos_t invalidEnd
The end of the invalid region in the buffer, forms a rectangle with invalidStart.
uint64_t height
The height of the buffer in chars.
uint64_t width
The width of the buffer in chars.
uint64_t firstLineIndex
The index of the first line in the buffer.