|
PatchworkOS
19e446b
A non-POSIX operating system.
|
Screen logging. More...
Screen logging.
Data Structures | |
| struct | screen_pos_t |
| Represents a position on the screen in character coordinates. More... | |
| struct | screen_line_t |
| A single line in the screen buffer. More... | |
Macros | |
| #define | SCREEN_WRAP_INDENT 17 |
| 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 | screen_init (void) |
| Initialize and enable the screen logging. | |
| void | screen_show (void) |
| Show the screen logging. | |
| void | screen_hide (void) |
| Hide the screen logging. | |
| void | screen_panic (void) |
| Show the screen without locking, for panic situations. | |
| uint64_t | screen_get_width (void) |
| Get screen width in characters. | |
| uint64_t | screen_get_height (void) |
| Get screen height in characters. | |
| void | screen_write (const char *string, uint64_t length) |
| Write a string to the screen. | |
| #define SCREEN_WRAP_INDENT 17 |
| #define SCREEN_LINE_MAX_LENGTH (130) |
| #define SCREEN_LINE_STRIDE (SCREEN_LINE_MAX_LENGTH * GLYPH_WIDTH) |
| void screen_init | ( | void | ) |
| void screen_show | ( | void | ) |
| void screen_hide | ( | void | ) |
| void screen_panic | ( | void | ) |
| uint64_t screen_get_width | ( | void | ) |
| uint64_t screen_get_height | ( | void | ) |
| void screen_write | ( | const char * | string, |
| uint64_t | length | ||
| ) |