aboutsummaryrefslogtreecommitdiff
path: root/terminal.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-12-03 17:36:56 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-12-07 19:44:10 +0000
commit05083110c3fad046ccf0838a364150b8d2bab888 (patch)
tree5b77e2b5b87226b0e6dbc81273d9db955b8a1ef8 /terminal.h
parentime: render pre-edit text (diff)
ime: make IME compile-time optional
Diffstat (limited to 'terminal.h')
-rw-r--r--terminal.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/terminal.h b/terminal.h
index b8339d8d..bbe7df25 100644
--- a/terminal.h
+++ b/terminal.h
@@ -470,6 +470,7 @@ struct terminal {
unsigned max_height; /* Maximum image height, in pixels */
} sixel;
+#if defined(FOOT_IME_ENABLED) && FOOT_IME_ENABLED
struct {
struct {
struct cell *cells;
@@ -482,6 +483,7 @@ struct terminal {
} cursor;
} preedit;
} ime;
+#endif
bool quit;
bool is_shutting_down;
@@ -605,3 +607,5 @@ bool term_scrollback_to_text(
const struct terminal *term, char **text, size_t *len);
bool term_view_to_text(
const struct terminal *term, char **text, size_t *len);
+
+void term_reset_ime(struct terminal *term);