Added cursor rendering (kinda badly, will delete any characters under it)

This commit is contained in:
2024-04-19 14:10:45 +02:00
parent 889f283fcd
commit da1ab4d6ff
3 changed files with 10 additions and 2 deletions
+2
View File
@@ -48,9 +48,11 @@ void printAt(const char* str, uint32_t x, uint32_t y) {
void putc(char c) {
if (c == '\n') {
putcAt(' ', cursor.x, cursor.y); // Make sure we don't leave an extra cursor
cursor.y++;
cursor.x = 0;
} else if (c == '\b') {
putcAt(' ', cursor.x, cursor.y); // Make sure we don't leave an extra cursor TODO: make this better
cursor.x--;
putcAt(' ', cursor.x, cursor.y);
} else {