#include #include #include #include void write(char *s, uint8_t color) { static size_t x BLSEC_DATA = 0; static size_t y BLSEC_DATA = 0; size_t len = strlen(s); for (size_t i = 0; i < len; i++) { if (s[i] == '\n') { y++; x = 0; continue; } vga_put(x, y, s[i], color); if (y >= MAX_HEIGHT) return; //TODO: To be implemented. if (x >= MAX_WIDTH) { y++; x = 0; } else { x++; } } }