diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-12-03 17:36:56 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-12-07 19:44:10 +0000 |
| commit | 05083110c3fad046ccf0838a364150b8d2bab888 (patch) | |
| tree | 5b77e2b5b87226b0e6dbc81273d9db955b8a1ef8 /terminal.h | |
| parent | ime: render pre-edit text (diff) | |
ime: make IME compile-time optional
Diffstat (limited to 'terminal.h')
| -rw-r--r-- | terminal.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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); |
