aboutsummaryrefslogtreecommitdiff
path: root/vterm-module.h
diff options
context:
space:
mode:
authorLukas Fürmetz <fuermetz@mailbox.org>2017-11-21 21:36:04 +0100
committerLukas Fürmetz <fuermetz@mailbox.org>2017-11-21 21:49:45 +0100
commita69803d8c0238081595942e0c9aa1e89c8146665 (patch)
tree459b9cac1173c8ce5b6d608974be848603f3a9eb /vterm-module.h
parent78bb438b95929d7c5ba0b6572fe58b0035f7ae41 (diff)
Add support for custom colors
Diffstat (limited to 'vterm-module.h')
-rw-r--r--vterm-module.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/vterm-module.h b/vterm-module.h
index 11c9531..b971592 100644
--- a/vterm-module.h
+++ b/vterm-module.h
@@ -15,6 +15,17 @@ struct Term {
pthread_t thread;
};
+// 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,
@@ -23,6 +34,7 @@ static emacs_value render_text(emacs_env *env, char *string, int len,
static int set_term_prop_cb(VTermProp prop, VTermValue *val, void *user_data);
static void term_redraw(struct Term *term, emacs_env *env);
+static void term_setup_colors(struct Term *term, emacs_env *env);
static void term_flush_output(struct Term *term);
static void term_process_key(struct Term *term, unsigned char *key, size_t len,
VTermModifier modifier);