diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2014-08-03 14:11:58 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2014-08-03 14:11:58 +0200 |
commit | 124b2668fe4e97e3926caea85ed2c9f7082c4df9 (patch) | |
tree | cf4ba8c638793021962a9c12816eea1aff54d5ae /src/core | |
parent | 5262e0517775accad61ec4e2ab73666bdc853f63 (diff) | |
download | weechat-124b2668fe4e97e3926caea85ed2c9f7082c4df9.zip |
core: display warning on $TERM only if it doesn't start with "screen" (under screen/tmux)
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/weechat.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/weechat.c b/src/core/weechat.c index 50dca27f2..4ca51da53 100644 --- a/src/core/weechat.c +++ b/src/core/weechat.c @@ -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]); |