d55111f2003aa474bb5045638cdd5141ae8309da

Author
Ionel Cristian Mărieș <contact@ionelmc.ro>
Committer
Ionel Cristian Mărieș <contact@ionelmc.ro>
Date

Message

Support all kinds of putty-like terminal strings.

Diff

 1diff --git a/lib/termsupport.zsh b/lib/termsupport.zsh
 2index 4780be8080f436e5e2db818dee9cefa7e1d3883e..9750a9fe8add31d5cc6e5a476973baa6dfdb76e5 100644
 3--- a/lib/termsupport.zsh
 4+++ b/lib/termsupport.zsh
 5@@ -18,7 +18,7 @@ function title {
 6 
 7   if [[ "$TERM" == screen* ]]; then
 8     print -Pn "\ek$1:q\e\\" #set screen hardstatus, usually truncated at 20 chars
 9-  elif [[ "$TERM" == xterm* ]] || [[ "$TERM" == putty ]] || [[ "$TERM" == rxvt* ]] || [[ "$TERM" == ansi ]] || [[ "$TERM_PROGRAM" == "iTerm.app" ]]; then
10+  elif [[ "$TERM" == xterm* ]] || [[ "$TERM" == putty* ]] || [[ "$TERM" == rxvt* ]] || [[ "$TERM" == ansi ]] || [[ "$TERM_PROGRAM" == "iTerm.app" ]]; then
11     print -Pn "\e]2;$2:q\a" #set window name
12     print -Pn "\e]1;$1:q\a" #set icon (=tab) name
13   fi