simponicOS/include/print.h

25 lines
704 B
C
Raw Normal View History

2021-02-21 01:24:25 -05:00
#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;
2021-03-01 17:17:24 -05:00
TextOutput monitor;
2021-02-21 01:24:25 -05:00
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);
2021-03-01 17:17:24 -05:00
char* itoa(int value, char* buffer, int base);
void printToMonitor(char* string);
void printIntToMonitor(int num, int base);
2021-02-21 01:24:25 -05:00
#endif // PRINT_H