aboutsummaryrefslogtreecommitdiff
path: root/terminal.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-05-01 10:06:09 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-05-01 10:06:09 +0000
commit99172e7f8e0a7caa1356a9beebf7d22288e5f7a1 (patch)
tree92af8f394e1124952cf69652bdb340376765f730 /terminal.h
parentterm: don't enable ptmx FDM callback until Wayland window has been configured (diff)
parentunicode-combining: completely remove unicode combining characters when feature is disabled (diff)
Merge branch 'unicode-combining-for-real'
Diffstat (limited to 'terminal.h')
-rw-r--r--terminal.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/terminal.h b/terminal.h
index 7152bc23..62c7e707 100644
--- a/terminal.h
+++ b/terminal.h
@@ -77,10 +77,21 @@ struct damage {
int lines;
};
+#if FOOT_UNICODE_COMBINING
+struct combining_chars {
+ uint8_t count;
+ wchar_t chars[2]; /* TODO: how many do we need? */
+};
+#endif
+
struct row {
struct cell *cells;
bool dirty;
bool linebreak;
+
+#if FOOT_UNICODE_COMBINING
+ struct combining_chars *comb_chars;
+#endif
};
struct sixel {
@@ -368,7 +379,7 @@ struct terminal {
struct {
struct coord actual; /* Absolute */
struct coord in_view; /* Offset by view */
- struct cell *cell; /* For easy access to content */
+ struct row *row; /* Actual row TODO: remove */
} last_cursor;
struct buffer *last_buf; /* Buffer we rendered to last time */