aboutsummaryrefslogtreecommitdiff
path: root/terminal.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-07-14 14:49:11 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-07-14 14:49:11 +0000
commitdf2927e088ceb2119264d1a970c22a450f00005b (patch)
treef902d442373f54b7f69aa9e0d6d62175427ade34 /terminal.h
parentterm: rename COMB_CHARS_LO,HI -> CELL_COMB_CHARS_LO,HI (diff)
term: print: write special value CELL_MULT_COL_SPACER to extra cells
When printing a multi-column character, write CELL_MULT_COL_SPACER instead of '0' to both padding cells (when character doesn't fit at the end of the line), and to the cells following the actual character.
Diffstat (limited to 'terminal.h')
-rw-r--r--terminal.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/terminal.h b/terminal.h
index f32f86dc..68259160 100644
--- a/terminal.h
+++ b/terminal.h
@@ -50,6 +50,8 @@ static_assert(sizeof(struct attributes) == 8, "bad size");
#define CELL_COMB_CHARS_LO 0x40000000ul
#define CELL_COMB_CHARS_HI 0x400ffffful
+#define CELL_MULT_COL_SPACER 0x40100000ul
+
struct cell {
wchar_t wc;
struct attributes attrs;