diff options
author | Patrice Peterson <patrice.peterson@mailbox.org> | 2018-12-11 21:05:04 +0100 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2018-12-11 22:49:16 +0100 |
commit | 3c42d7a10a044b94f4050a2c0ea68d142d5c62eb (patch) | |
tree | 77f741e4a3ee063be3cfcec35b9417c830a94d82 | |
parent | 57acfceabeb349377ce244de9b67732b21ed1d18 (diff) | |
download | rneovim-3c42d7a10a044b94f4050a2c0ea68d142d5c62eb.tar.gz rneovim-3c42d7a10a044b94f4050a2c0ea68d142d5c62eb.tar.bz2 rneovim-3c42d7a10a044b94f4050a2c0ea68d142d5c62eb.zip |
TUI: alacritty supports set_cursor_color #9353
Feature was added in:
https://github.com/jwilm/alacritty/pull/757
closes #9353
-rw-r--r-- | src/nvim/tui/tui.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/nvim/tui/tui.c b/src/nvim/tui/tui.c index 048498bf7c..1e0c8e6e25 100644 --- a/src/nvim/tui/tui.c +++ b/src/nvim/tui/tui.c @@ -1761,6 +1761,7 @@ static void augment_terminfo(TUIData *data, const char *term, || terminfo_is_term_family(term, "iterm2") || terminfo_is_term_family(term, "iTerm.app") || terminfo_is_term_family(term, "iTerm2.app"); + bool alacritty = terminfo_is_term_family(term, "alacritty"); // None of the following work over SSH; see :help TERM . bool iterm_pretending_xterm = xterm && iterm_env; @@ -1828,7 +1829,8 @@ static void augment_terminfo(TUIData *data, const char *term, // would use a tmux control sequence and an extra if(screen) test. data->unibi_ext.set_cursor_color = (int)unibi_add_ext_str( ut, NULL, TMUX_WRAP(tmux, "\033]Pl%p1%06x\033\\")); - } else if ((xterm || rxvt) && (vte_version == 0 || vte_version >= 3900)) { + } else if ((xterm || rxvt || alacritty) + && (vte_version == 0 || vte_version >= 3900)) { // Supported in urxvt, newer VTE. data->unibi_ext.set_cursor_color = (int)unibi_add_ext_str( ut, "ext.set_cursor_color", "\033]12;#%p1%06x\007"); |