summaryrefslogtreecommitdiffstats
path: root/lib/virtterm.h
blob: 08e22e96d97d8d7a5cbeca3bdaddd25056a1eabb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef _JOVE_LIB_VIRTTERM_H
#define _JOVE_LIB_VIRTTERM_H 1

#include <stddef.h>
#include "hal/obj.h"

struct virtterm
{
    size_t fb_obj;
    size_t cursor_col, cursor_row;
    size_t width, height;
    uint32_t cursor_fg, cursor_bg;
};

int vt_write(jove_owned_obj_t *obj, const char *s, size_t n);

void vt_init(void);

#endif