diff options
| author | Lukas Fürmetz <fuermetz@mailbox.org> | 2019-01-29 00:11:40 +0100 |
|---|---|---|
| committer | Lukas Fürmetz <fuermetz@mailbox.org> | 2019-01-29 00:11:40 +0100 |
| commit | 920d847f4277c7b3c239b31ce096895b3e72eefc (patch) | |
| tree | 42d6428a6035daa78a319f4b893af2fe361cbf09 /vterm-module.h | |
| parent | 5855b328c175e2a7310b53f76d12571a913a2b4b (diff) | |
Fix color handling and support 256 colors
Diffstat (limited to 'vterm-module.h')
| -rw-r--r-- | vterm-module.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/vterm-module.h b/vterm-module.h index a9a9301..86ad81d 100644 --- a/vterm-module.h +++ b/vterm-module.h @@ -56,10 +56,11 @@ typedef struct Term { 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, +static emacs_value render_text(emacs_env *env, Term *term, 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 emacs_value cell_to_face(emacs_env *env, Term *term, VTermScreenCell *cell); +static emacs_value color_to_face(emacs_env *env, VTermColor *color, emacs_value palette); +static emacs_value color_to_rgb_string(emacs_env *env, Term *term, VTermColor *color); static int term_settermprop(VTermProp prop, VTermValue *val, void *user_data); |
