:: limine / common / lib / gterm.h 849 B raw

1
#ifndef LIB__GTERM_H__
2
#define LIB__GTERM_H__
3
4
#include <stddef.h>
5
#include <stdint.h>
6
#include <stdbool.h>
7
#include <lib/fb.h>
8
9
bool gterm_init(struct fb_info **ret, size_t *_fbs_count,
10
                char *config, size_t width, size_t height);
11
12
struct flanterm_params {
13
    uint32_t *canvas;
14
    size_t canvas_size;
15
    uint32_t ansi_colours[8];
16
    uint32_t ansi_bright_colours[8];
17
    uint32_t default_bg;
18
    uint32_t default_fg;
19
    uint32_t default_bg_bright;
20
    uint32_t default_fg_bright;
21
    uint8_t *font;
22
    size_t font_width;
23
    size_t font_height;
24
    size_t font_spacing;
25
    size_t font_scale_x;
26
    size_t font_scale_y;
27
    size_t margin;
28
    int rotation;
29
};
30
31
size_t gterm_prepare_flanterm_params(struct fb_info *fbs, size_t fbs_count,
32
                                     struct flanterm_params *out, size_t out_max);
33
34
#endif
tab: 248 wrap: offon