kernel/inc/drivers/builtin/tty.h

26 lines
605 B
C
Raw Permalink Normal View History

// This file is part of noxos and licensed under the MIT open source license
#ifndef NOXOS_TTY_H
#define NOXOS_TTY_H
#include "drivers/builtin/graphics/renderer.h"
#include "utils/stream.h"
#include "proc/pipe.h"
typedef struct {
graphics_buffer_T* graphics_buffer;
pipe_T* output;
pipe_T input;
2023-05-01 20:53:23 +00:00
graphics_buffer_T* cursor_overlay;
position_T cursor;
color_argb_T color;
} tty_T;
void tty_init ();
void tty_update ();
uint32_t tty_write (string_t string);
extern tty_T* g_tty;
#endif //NOXOS_TTY_H