From e4db8922babba11b8456ab4c1f4d8629e013b600 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ghislain=20L=C3=A9v=C3=AAque?= Date: Wed, 11 Jun 2014 16:15:15 +0200 Subject: [PATCH] Removes the support for screen TERMs in termsupport.zsh Without this fix, it is not possible to have fixed window titles in screen, zsh always makes automatic titles. This fixes #2015 and #1491 Users should now use the screen plugin to get an automatic windowtitle. --- lib/termsupport.zsh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/termsupport.zsh b/lib/termsupport.zsh index 9c0a430fb..bc9255d71 100644 --- a/lib/termsupport.zsh +++ b/lib/termsupport.zsh @@ -6,9 +6,7 @@ function title { if [[ "$DISABLE_AUTO_TITLE" == "true" ]] || [[ "$EMACS" == *term* ]]; then return fi - if [[ "$TERM" == screen* ]]; then - print -Pn "\ek$1:q\e\\" #set screen hardstatus, usually truncated at 20 chars - elif [[ "$TERM" == xterm* ]] || [[ $TERM == rxvt* ]] || [[ $TERM == ansi ]] || [[ "$TERM_PROGRAM" == "iTerm.app" ]]; then + if [[ "$TERM" == xterm* ]] || [[ $TERM == rxvt* ]] || [[ $TERM == ansi ]] || [[ "$TERM_PROGRAM" == "iTerm.app" ]]; then print -Pn "\e]2;$2:q\a" #set window name print -Pn "\e]1;$1:q\a" #set icon (=tab) name (will override window name on broken terminal) fi