diff options
author | Ionel Cristian Mărieș <contact@ionelmc.ro> | 2015-12-01 00:59:35 +0200 |
---|---|---|
committer | Ionel Cristian Mărieș <contact@ionelmc.ro> | 2015-12-01 00:59:35 +0200 |
commit | d55111f2003aa474bb5045638cdd5141ae8309da (patch) | |
tree | d01bbbbb15bed22beb61617cf4b821dfc33e7902 /lib/termsupport.zsh | |
parent | 711c1bcb40483c862e62bbd4528474b9c8009a48 (diff) | |
download | zsh-d55111f2003aa474bb5045638cdd5141ae8309da.tar.gz zsh-d55111f2003aa474bb5045638cdd5141ae8309da.tar.bz2 zsh-d55111f2003aa474bb5045638cdd5141ae8309da.zip |
Support all kinds of putty-like terminal strings.
Diffstat (limited to 'lib/termsupport.zsh')
-rw-r--r-- | lib/termsupport.zsh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/termsupport.zsh b/lib/termsupport.zsh index 4780be808..9750a9fe8 100644 --- a/lib/termsupport.zsh +++ b/lib/termsupport.zsh @@ -18,7 +18,7 @@ function title { if [[ "$TERM" == screen* ]]; then print -Pn "\ek$1:q\e\\" #set screen hardstatus, usually truncated at 20 chars - elif [[ "$TERM" == xterm* ]] || [[ "$TERM" == putty ]] || [[ "$TERM" == rxvt* ]] || [[ "$TERM" == ansi ]] || [[ "$TERM_PROGRAM" == "iTerm.app" ]]; then + elif [[ "$TERM" == xterm* ]] || [[ "$TERM" == putty* ]] || [[ "$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 fi |