blob: c46843cba59c8a074190540461794c75812cddf7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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
|