Merge branch '4248_alacritty'

* 4248_alacritty:
  (tty_check_term): clarify description.
  Ticket #4248: add alacritty to known terminals.
This commit is contained in:
Andrew Borodin 2021-05-29 13:54:37 +03:00
commit 167f437b14
1 changed files with 9 additions and 2 deletions

View File

@ -91,8 +91,14 @@ sigintr_handler (int signo)
*
* @param force_xterm Set forced the XTerm type
*
* @return true if @param force_xterm is true or value of $TERM is one of term*, konsole*
* rxvt*, Eterm or dtterm
* @return true if @param force_xterm is true or value of $TERM is one of following:
* term*
* konsole*
* rxvt*
* Eterm
* dtterm
* alacritty*
* screen* (and DISPLAY environment variable is set).
*/
gboolean
tty_check_term (gboolean force_xterm)
@ -116,6 +122,7 @@ tty_check_term (gboolean force_xterm)
|| strncmp (termvalue, "rxvt", 4) == 0
|| strcmp (termvalue, "Eterm") == 0
|| strcmp (termvalue, "dtterm") == 0
|| strncmp (termvalue, "alacritty", 9) == 0
|| (strncmp (termvalue, "screen", 6) == 0 && xdisplay != NULL);
}