diff options
| author | Illia Ostapyshyn <ilya.ostapyshyn@gmail.com> | 2023-09-23 00:32:10 +0200 |
|---|---|---|
| committer | Gabriele Bozzola <sbozzolator@gmail.com> | 2024-01-02 08:40:56 -0800 |
| commit | e96c53f5035c841b20937b65142498bd8e161a40 (patch) | |
| tree | f713a12fc39cef51e980c48040a7a98341122137 /elisp.h | |
| parent | f76de08cf62722a8c532b889a9361bbcc5c83972 (diff) | |
Differentiate foreground and background colors
Allow using different background and foreground colors for same ANSI
index, analogously to how term-mode does it.
Remove magical indices for underlined cells with default foreground and
inverse-video cells with default background. Instead, pass relevant
info to lisp function to handle these cases at higher level.
* elisp.c, elisp.h (Fapply): New binding.
(vterm_get_color): Add new argument for optional attributes.
* vterm-module.c (cell_rgb_color): Pass relevant attributes to
vterm_get_color.
* vterm.el (vterm--get-color): Use foreground or background color of the
face depending on received attributes.
* README.md: Update documentation
Diffstat (limited to 'elisp.h')
| -rw-r--r-- | elisp.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -29,6 +29,7 @@ extern emacs_value Qrear_nonsticky; extern emacs_value Qvterm_prompt; // Emacs functions +extern emacs_value Fapply; extern emacs_value Fblink_cursor_mode; extern emacs_value Fsymbol_value; extern emacs_value Flength; @@ -91,7 +92,7 @@ emacs_value selected_window(emacs_env *env); void set_title(emacs_env *env, emacs_value string); void set_directory(emacs_env *env, emacs_value string); void vterm_invalidate(emacs_env *env); -emacs_value vterm_get_color(emacs_env *env, int index); +emacs_value vterm_get_color(emacs_env *env, int index, emacs_value args); emacs_value vterm_eval(emacs_env *env, emacs_value string); emacs_value vterm_set_selection(emacs_env *env, emacs_value selection_target, emacs_value selection_data); |
