diff options
Diffstat (limited to 'include/print.h')
-rw-r--r-- | include/print.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/include/print.h b/include/print.h new file mode 100644 index 0000000..c46843c --- /dev/null +++ b/include/print.h @@ -0,0 +1,19 @@ +#ifndef PRINT_H +#define PRINT_H + +#include "types.h" + +typedef struct TextOutput { + int terminal_row; + int terminal_column; + int max_row; + int max_column; + uint16_t* vid_mem; +}__attribute__((packed)) TextOutput; + +TextOutput createOutput(const int max_row, const int max_column, uint16_t* vid_mem); +void scrollText(TextOutput* textOutput); +void putChar(uint8_t character, uint8_t background, uint8_t foreground, TextOutput* textOutput); +void print(char* string, uint8_t background, uint8_t foreground, TextOutput* textOutput); + +#endif // PRINT_H |