screen: implement cursorhome terminal command
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user