aboutsummaryrefslogtreecommitdiff
path: root/terminal.h
diff options
context:
space:
mode:
Diffstat (limited to 'terminal.h')
-rw-r--r--terminal.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/terminal.h b/terminal.h
index 08a0e538..3eb8abce 100644
--- a/terminal.h
+++ b/terminal.h
@@ -19,8 +19,10 @@ struct attributes {
bool blink;
bool conceal;
bool reverse;
- uint32_t foreground;
- uint32_t background;
+ bool have_foreground;
+ bool have_background;
+ uint32_t foreground; /* Only valid when have_foreground == true */
+ uint32_t background; /* Only valid when have_background == true */
};
struct cell {