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

View File

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