2019-07-16 11:52:22 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
2019-07-21 11:06:28 +02:00
|
|
|
#include <stdint.h>
|
2019-07-17 10:12:14 +02:00
|
|
|
#include <stdbool.h>
|
|
|
|
|
|
2019-07-22 20:15:14 +02:00
|
|
|
#include "terminal.h"
|
|
|
|
|
|
2019-07-16 11:52:22 +02:00
|
|
|
struct config {
|
2019-07-18 14:29:40 +02:00
|
|
|
char *term;
|
2019-07-17 09:29:56 +02:00
|
|
|
char *shell;
|
2019-07-16 11:52:22 +02:00
|
|
|
char *font;
|
2019-07-21 11:06:28 +02:00
|
|
|
|
|
|
|
|
struct {
|
|
|
|
|
uint32_t fg;
|
|
|
|
|
uint32_t bg;
|
|
|
|
|
uint32_t regular[8];
|
|
|
|
|
uint32_t bright[8];
|
|
|
|
|
} colors;
|
2019-07-22 20:15:14 +02:00
|
|
|
|
|
|
|
|
struct {
|
|
|
|
|
enum cursor_style style;
|
2019-07-23 18:54:58 +02:00
|
|
|
struct {
|
|
|
|
|
uint32_t text;
|
|
|
|
|
uint32_t cursor;
|
|
|
|
|
} color;
|
2019-07-22 20:15:14 +02:00
|
|
|
} cursor;
|
2019-07-16 11:52:22 +02:00
|
|
|
};
|
|
|
|
|
|
2019-07-17 10:12:14 +02:00
|
|
|
bool config_load(struct config *conf);
|
2019-07-16 11:52:22 +02:00
|
|
|
void config_free(struct config conf);
|