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