#include #include #include void tty_init(void) { vga_clear(); serial_init(); // write hearts vga_write("\x03 ", 2); serial_write("<3 ", 3); } void tty_read(char *buf, size_t len) { for (size_t i = 0; i < len; i++) buf[i] = serial_read(); } void tty_write(const char *buf, size_t len) { vga_write(buf, len); serial_write(buf, len); }