diff options
| author | jixiufeng <jixiufeng@luojilab.com> | 2019-04-22 23:39:52 +0800 |
|---|---|---|
| committer | jixiuf <jixiuf@qq.com> | 2019-07-30 22:00:57 +0800 |
| commit | d97260c902524850b4b90489231a3fe00f606921 (patch) | |
| tree | 980ba15b1aacaf389ff73f6d8b2412935719ab1e /elisp.c | |
| parent | 44570d15d220f5d41aa1ce20e84644bd7f891d54 (diff) | |
clean code,remove unused function get_hex_color_fg and get_hex_color_bg
Diffstat (limited to 'elisp.c')
| -rw-r--r-- | elisp.c | 11 |
1 files changed, 3 insertions, 8 deletions
@@ -109,14 +109,9 @@ void set_cursor_type(emacs_env *env, emacs_value QCursorType) { } -emacs_value get_hex_color_fg(emacs_env *env, emacs_value face) { - return env->funcall(env, Fvterm_face_color_hex, 2, - (emacs_value[]){face, Qforeground}); -} - -emacs_value get_hex_color_bg(emacs_env *env, emacs_value face) { - return env->funcall(env, Fvterm_face_color_hex, 2, - (emacs_value[]){face, Qbackground}); +emacs_value vterm_get_color(emacs_env *env, int index) { + emacs_value idx = env->make_integer(env, index); + return env->funcall(env, Fvterm_get_color, 1, (emacs_value[]){idx}); } void set_title(emacs_env *env, emacs_value string) { |
