foot/config.h

43 lines
706 B
C
Raw Normal View History

#pragma once
#include <stdint.h>
#include <stdbool.h>
#include <tllist.h>
#include "terminal.h"
struct config {
2019-07-18 14:29:40 +02:00
char *term;
2019-07-17 09:29:56 +02:00
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;
2019-07-29 20:13:26 +02:00
size_t render_worker_count;
char *server_socket_path;
};
bool config_load(struct config *conf, const char *path);
void config_free(struct config conf);