summaryrefslogtreecommitdiff
path: root/lib/termsupport.zsh
diff options
context:
space:
mode:
authorIonel Cristian Mărieș <contact@ionelmc.ro>2015-11-30 15:16:47 +0200
committerIonel Cristian Mărieș <contact@ionelmc.ro>2015-11-30 15:16:47 +0200
commit711c1bcb40483c862e62bbd4528474b9c8009a48 (patch)
tree78710893bbf6d25451b0a8f825d66fe8215f6e41 /lib/termsupport.zsh
parentafd28bf1fc22f53c4a1af3f5836ca428affb34b3 (diff)
downloadzsh-711c1bcb40483c862e62bbd4528474b9c8009a48.tar.gz
zsh-711c1bcb40483c862e62bbd4528474b9c8009a48.tar.bz2
zsh-711c1bcb40483c862e62bbd4528474b9c8009a48.zip
Add support for "putty" $TERM in termsupport.zsh
Diffstat (limited to 'lib/termsupport.zsh')
-rw-r--r--lib/termsupport.zsh2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/termsupport.zsh b/lib/termsupport.zsh
index 4c5068e9b..4780be808 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" == 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