aboutsummaryrefslogtreecommitdiff
path: root/terminal.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-07-21 08:58:09 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-07-21 08:58:09 +0000
commit29d855d7c6930bd6c42a0d9f01f466e4602834d8 (patch)
tree18b4d98ec9f946a65bbce72f24bab7a9ba71f4da /terminal.h
parentosc: add TODO (diff)
term: prepare for configurable colors; add color variables to terminal
Diffstat (limited to 'terminal.h')
-rw-r--r--terminal.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/terminal.h b/terminal.h
index c0d68f21..a2ffbb92 100644
--- a/terminal.h
+++ b/terminal.h
@@ -259,8 +259,17 @@ struct terminal {
bool print_needs_wrap;
struct scroll_region scroll_region;
- uint32_t foreground;
- uint32_t background;
+ struct {
+ uint32_t fg;
+ uint32_t bg;
+ uint32_t regular[8];
+ uint32_t bright[8];
+
+ uint32_t default_fg;
+ uint32_t defualt_bg;
+ uint32_t default_regular[8];
+ uint32_t defualt_bright[8];
+ } colors;
struct {
int col;