summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPaul LeoNerd Evans <leonerd@leonerd.org.uk>2016-10-07 10:36:59 +0100
committerPaul LeoNerd Evans <leonerd@leonerd.org.uk>2016-10-07 10:36:59 +0100
commit7989ba4eaa2f910db69a5a191c97117566cbea25 (patch)
tree0e8d35b523508945fbaafb30b64a6ffd79e3af5b /include
parent98eaf1e8bb438c608a4d5e697f02996793f57d30 (diff)
Pull VTermScreenCell.attrs out to its own named type
Diffstat (limited to 'include')
-rw-r--r--include/vterm.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/include/vterm.h b/include/vterm.h
index a5d8f65..57ebe46 100644
--- a/include/vterm.h
+++ b/include/vterm.h
@@ -234,10 +234,6 @@ const VTermLineInfo *vterm_state_get_lineinfo(const VTermState *state, int row);
// ------------
typedef struct {
-#define VTERM_MAX_CHARS_PER_CELL 6
- uint32_t chars[VTERM_MAX_CHARS_PER_CELL];
- char width;
- struct {
unsigned int bold : 1;
unsigned int underline : 2;
unsigned int italic : 1;
@@ -247,7 +243,13 @@ typedef struct {
unsigned int font : 4; /* 0 to 9 */
unsigned int dwl : 1; /* On a DECDWL or DECDHL line */
unsigned int dhl : 2; /* On a DECDHL line (1=top 2=bottom) */
- } attrs;
+} VTermScreenCellAttrs;
+
+typedef struct {
+#define VTERM_MAX_CHARS_PER_CELL 6
+ uint32_t chars[VTERM_MAX_CHARS_PER_CELL];
+ char width;
+ VTermScreenCellAttrs attrs;
VTermColor fg, bg;
} VTermScreenCell;