screen: implement cursorhome terminal command

This commit is contained in:
2025-08-22 17:43:41 +03:00
parent fffa4b7699
commit 9bb6d9d1a5
3 changed files with 39 additions and 17 deletions
-6
View File
@@ -4,21 +4,15 @@
#include <stddef.h>
#include "../include/string.h"
#ifdef __is_katauos
#include "../include/screen.h"
#endif
int puts(const char* string) {
return printf("%s\n", string);
}
int putchar(int ic) {
#if defined(__is_katauos)
char c = (char) ic;
terminal_write(&c, sizeof(c));
#else
// TODO: Implement stdio and the write system call.
#endif
return ic;
}