#ifndef TTY_H
#define TTY_H

#include <stdint.h>
#include <stddef.h>

// This struct is a copy of the one in kernel.c so tty.c knows how to draw
struct tty_framebuffer {
    uint32_t *address;
    uint64_t width;
    uint64_t height;
    uint64_t pitch;
};

// --- TTY FUNCTIONS ---

// Initializes the terminal with a framebuffer and colors
void tty_init(struct tty_framebuffer *fb, uint32_t fg, uint32_t bg);

// Puts a single character on the screen
void tty_putchar(char c);

// Prints a whole string (like your old writestring)
void tty_print(const char *str);

// Clears the screen to the background color
void tty_clear();

#endif