mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-23 21:06:52 +03:00
Merge branch '4248_alacritty'
* 4248_alacritty: (tty_check_term): clarify description. Ticket #4248: add alacritty to known terminals.
This commit is contained in:
commit
167f437b14
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user