diff options
| author | Lukas Fürmetz <fuermetz@mailbox.org> | 2019-01-27 18:17:46 +0100 |
|---|---|---|
| committer | Lukas Fürmetz <fuermetz@mailbox.org> | 2019-01-27 18:34:18 +0100 |
| commit | 46f222eeef6ae5820c91c3aa4f86d385dd126cbc (patch) | |
| tree | 6976ae918e5426386e0caf27c84452cd5d57f348 /vterm-module.h | |
| parent | 3929a9d573d89365fc68053824045ef654ef1146 (diff) | |
Adapt color handling to the latest libvtermupdate_libvterm
Diffstat (limited to 'vterm-module.h')
| -rw-r--r-- | vterm-module.h | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/vterm-module.h b/vterm-module.h index bd05dc4..a9a9301 100644 --- a/vterm-module.h +++ b/vterm-module.h @@ -54,26 +54,16 @@ typedef struct Term { int width, height; } Term; -// Faces -emacs_value Qterm; -emacs_value Qterm_color_black; -emacs_value Qterm_color_red; -emacs_value Qterm_color_green; -emacs_value Qterm_color_yellow; -emacs_value Qterm_color_blue; -emacs_value Qterm_color_magenta; -emacs_value Qterm_color_cyan; -emacs_value Qterm_color_white; - static bool compare_cells(VTermScreenCell *a, VTermScreenCell *b); static bool is_key(unsigned char *key, size_t len, char *key_description); static emacs_value render_text(emacs_env *env, char *string, int len, VTermScreenCell *cell); +static emacs_value cell_to_face(emacs_env *env, const VTermScreenCell *cell); +static emacs_value color_to_face(emacs_env *env, const VTermColor *color, emacs_value palette); static int term_settermprop(VTermProp prop, VTermValue *val, void *user_data); static void term_redraw(Term *term, emacs_env *env); -static void term_setup_colors(Term *term, emacs_env *env); static void term_flush_output(Term *term, emacs_env *env); static void term_process_key(Term *term, unsigned char *key, size_t len, VTermModifier modifier); |
