Compare commits
No commits in common. "ee90b275b27a68fbff8461d4c87a97434d717949" and "820d3ed14a28b0156f08f213d8279ffd5ce8a75a" have entirely different histories.
ee90b275b2
...
820d3ed14a
|
@ -16,6 +16,8 @@ typedef struct {
|
|||
} tty_T;
|
||||
|
||||
void tty_init ();
|
||||
|
||||
tty_T* tty_alloc ();
|
||||
void tty_update ();
|
||||
uint32_t tty_write (string_t string);
|
||||
|
||||
|
|
|
@ -7,13 +7,20 @@
|
|||
tty_T* g_tty;
|
||||
|
||||
void tty_init() {
|
||||
g_tty = memory_allocate(sizeof(tty_T));
|
||||
g_tty->graphics_buffer = graphics_buffer_request(0, 0, graphics_renderer_get_width(), graphics_renderer_get_height(), GRAPHICS_BUFFER_STANDARD);
|
||||
g_tty->cursor.x = 0;
|
||||
g_tty->cursor.y = 0;
|
||||
g_tty->color = g_color_palette[COLOR_PAL_GREY_LIGHT];
|
||||
g_tty->output = NULL;
|
||||
pipe_init(&g_tty->input, NULL, tty_update);
|
||||
g_tty = tty_alloc();
|
||||
}
|
||||
|
||||
tty_T* tty_alloc() {
|
||||
tty_T* tty = memory_allocate(sizeof(tty_T));
|
||||
|
||||
tty->graphics_buffer = graphics_buffer_request(0, 0, graphics_renderer_get_width(), graphics_renderer_get_height(), GRAPHICS_BUFFER_STANDARD);
|
||||
tty->cursor.x = 0;
|
||||
tty->cursor.y = 0;
|
||||
tty->color = g_color_palette[COLOR_PAL_GREY_LIGHT];
|
||||
tty->output = NULL;
|
||||
pipe_init(&tty->input, NULL, tty_update);
|
||||
|
||||
return tty;
|
||||
}
|
||||
|
||||
void tty_update() {
|
||||
|
|
Loading…
Reference in New Issue