mirror of
https://github.com/weechat/weechat.git
synced 2026-06-27 13:26:38 +02:00
core: display warning on $TERM only if it doesn't start with "screen" (under screen/tmux)
This commit is contained in:
+1
-2
@@ -402,8 +402,7 @@ weechat_term_check ()
|
||||
sty = getenv ("STY");
|
||||
tmux = getenv ("TMUX");
|
||||
|
||||
is_term_ok = (term && ((strcmp (term, "screen") == 0)
|
||||
|| (strcmp (term, "screen-256color") == 0)));
|
||||
is_term_ok = (term && (strncmp (term, "screen", 6) == 0));
|
||||
is_screen = (sty && sty[0]);
|
||||
is_tmux = (tmux && tmux[0]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user