mirror of
https://github.com/Tom-on64/kern.git
synced 2026-11-03 18:22:22 +00:00
Added cursor rendering (kinda badly, will delete any characters under it)
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user