blob: 34373969e303c47ceed9af63826828a4ebbaf30f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
#pragma once
#include <stdint.h>
#include <stdbool.h>
#include "terminal.h"
#include "tllist.h"
struct config {
char *term;
char *shell;
unsigned width;
unsigned height;
tll(char *) fonts;
int scrollback_lines;
struct {
uint32_t fg;
uint32_t bg;
uint32_t regular[8];
uint32_t bright[8];
uint16_t alpha;
} colors;
struct {
enum cursor_style style;
struct {
uint32_t text;
uint32_t cursor;
} color;
} cursor;
size_t render_worker_count;
};
bool config_load(struct config *conf);
void config_free(struct config conf);
|