aboutsummaryrefslogtreecommitdiff
path: root/vterm-module.h
diff options
context:
space:
mode:
authorjixiufeng <jixiufeng@luojilab.com>2018-10-20 15:07:26 +0800
committerjixiufeng <jixiufeng@luojilab.com>2018-10-25 13:04:05 +0800
commit319f99f6ecc0babba7257cf9fbd156733dd83f62 (patch)
tree3f9ccee7bd38943de0be7019882b4e2af35685e8 /vterm-module.h
parent813352c278c70853251884b081844ed041080489 (diff)
typdef Term
Diffstat (limited to 'vterm-module.h')
-rw-r--r--vterm-module.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/vterm-module.h b/vterm-module.h
index b9dcd8d..808fb02 100644
--- a/vterm-module.h
+++ b/vterm-module.h
@@ -9,9 +9,12 @@
int plugin_is_GPL_compatible;
struct Term {
+struct term {
VTerm *vt;
};
+
+typedef struct term Term;
// Faces
emacs_value Qterm;
emacs_value Qterm_color_black;
@@ -30,12 +33,12 @@ 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, emacs_env *env);
-static void term_process_key(struct Term *term, unsigned char *key, size_t len,
+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);
-static void term_put_caret(struct Term *term, emacs_env *env, int row, int col,
+static void term_put_caret(Term *term, emacs_env *env, int row, int col,
int offset);
static void term_finalize(void *object);