aboutsummaryrefslogtreecommitdiff
path: root/terminal.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-11-22 20:55:06 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-11-22 20:55:06 +0000
commitf9854d93cf645b07a3326d729b5850f1a14041d5 (patch)
tree0b70bb7c45785b50dff10fa8f67301d0202461ff /terminal.h
parentmeson: bump version to 1.10.0 (diff)
parentMerge branch 'osc8-overwrite-2' (diff)
Merge branch 'master' into releases/1.10
Diffstat (limited to 'terminal.h')
-rw-r--r--terminal.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/terminal.h b/terminal.h
index 3516551f..b0526803 100644
--- a/terminal.h
+++ b/terminal.h
@@ -24,6 +24,13 @@
#include "shm.h"
#include "wayland.h"
+enum color_source {
+ COLOR_DEFAULT,
+ COLOR_BASE16,
+ COLOR_BASE256,
+ COLOR_RGB,
+};
+
/*
* Note: we want the cells to be as small as possible. Larger cells
* means fewer scrollback lines (or performance drops due to cache
@@ -43,12 +50,11 @@ struct attributes {
uint32_t fg:24;
bool clean:1;
+ enum color_source fg_src:2;
+ enum color_source bg_src:2;
bool confined:1;
- bool have_fg:1;
- bool have_bg:1;
bool selected:1;
bool url:1;
- uint32_t reserved:2;
uint32_t bg:24;
};
static_assert(sizeof(struct attributes) == 8, "VT attribute struct too large");