mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-01 07:15:32 -04:00
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.
This commit is contained in:
parent
5c99e8013b
commit
df2927e088
4 changed files with 16 additions and 17 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue