TUI: Alacritty supports DECSCUSR (#9048)

Alacritty may set TERM to"alacritty" or "alacritty-direct" if it finds its terminfo.
This commit is contained in:
Christian Duerr 2018-09-25 05:54:25 +00:00 committed by Justin M. Keyes
parent 59b2e6d35d
commit 7bff9a5de8

View File

@ -1447,6 +1447,7 @@ static void patch_terminfo_bugs(TUIData *data, const char *term,
|| terminfo_is_term_family(term, "iterm2") || terminfo_is_term_family(term, "iterm2")
|| terminfo_is_term_family(term, "iTerm.app") || terminfo_is_term_family(term, "iTerm.app")
|| terminfo_is_term_family(term, "iTerm2.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 . // None of the following work over SSH; see :help TERM .
bool iterm_pretending_xterm = xterm && iterm_env; bool iterm_pretending_xterm = xterm && iterm_env;
bool konsole_pretending_xterm = xterm && konsole; bool konsole_pretending_xterm = xterm && konsole;
@ -1641,6 +1642,7 @@ static void patch_terminfo_bugs(TUIData *data, const char *term,
// per analysis of VT100Terminal.m // per analysis of VT100Terminal.m
|| iterm || iterm_pretending_xterm || iterm || iterm_pretending_xterm
|| teraterm // per TeraTerm "Supported Control Functions" doco || teraterm // per TeraTerm "Supported Control Functions" doco
|| alacritty // https://github.com/jwilm/alacritty/pull/608
// Some linux-type terminals implement the xterm extension. // Some linux-type terminals implement the xterm extension.
// Example: console-terminal-emulator from the nosh toolset. // Example: console-terminal-emulator from the nosh toolset.
|| (linuxvt || (linuxvt