|
PatchworkOS
|
#include <kernel/config.h>#include <kernel/log/glyphs.h>#include <kernel/utils/ring.h>#include <boot/boot_info.h>#include <stdint.h>Go to the source code of this file.
Data Structures | |
| struct | log_screen_pos_t |
| Represents a position on the screen in character coordinates. More... | |
| struct | log_screen_line_t |
| A single line in the screen buffer. More... | |
| struct | log_screen_t |
| The screen buffer. More... | |
Macros | |
| #define | SCREEN_WRAP_INDENT 4 |
| Number of spaces to indent when a line wraps. | |
| #define | SCREEN_LINE_MAX_LENGTH (130) |
| Maximum number of characters in a single line. | |
| #define | SCREEN_LINE_STRIDE (SCREEN_LINE_MAX_LENGTH * GLYPH_WIDTH) |
| The stride of a screen line in pixels. | |
Functions | |
| 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_width (void) |
| Get screen width in characters. | |
| uint64_t | log_screen_get_height (void) |
| Get screen height in characters. | |
| void | log_screen_write (const char *string, uint64_t length) |
| Write a string to the screen. | |