TUI: alacritty supports set_cursor_color #9353

Feature was added in:
https://github.com/jwilm/alacritty/pull/757

closes #9353
This commit is contained in:
Patrice Peterson 2018-12-11 21:05:04 +01:00 committed by Justin M. Keyes
parent 57acfceabe
commit 3c42d7a10a
1 changed files with 3 additions and 1 deletions

View File

@ -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");