summaryrefslogtreecommitdiff
path: root/src/kernel/arch/i386/tty/tty.c
blob: bae65c51f24ffa374477e5f36d04ae8751a81ef0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include <kernel/arch/i386/tty/serial.h>
#include <kernel/arch/i386/tty/vga.h>
#include <kernel/arch/io.h>

void tty_init(void) {
	vga_clear();
	serial_init();

	// write hearts
	vga_write("\x03 ", 2);
	serial_write("<3 ", 3);
}

void tty_write(const char *buf, size_t len) {
	vga_write(buf, len);
	serial_write(buf, len);
}