diff options
author | Peter Palfrader <peter@palfrader.org> | 2008-06-10 13:00:41 +0000 |
---|---|---|
committer | weasel <weasel@bc3d92e2-beff-0310-a7cd-cc87d7ac0ede> | 2008-06-10 13:00:41 +0000 |
commit | 114b9645612022e5ebecaeab3eaf89510824fcb3 (patch) | |
tree | c7ac9041eec611a6018ef5bbfa96b05644f31f12 | |
parent | df9ff8be4dbcf02f8b66c61f9aada8d2dfdda883 (diff) |
Change xterm title in precmd/preexec
git-svn-id: svn+ssh://asteria.noreply.org/svn/weaselutils/trunk@356 bc3d92e2-beff-0310-a7cd-cc87d7ac0ede
-rw-r--r-- | zshrc | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -95,14 +95,15 @@ case $TERM in xterm*) precmd() { title=$TITLE - print -Pn "\e]2;$title\a\e]1;\a" + #print -Pn "\e]2;$title\a\e]1;\a" + print -Pn "\033]0;$title\007" }; preexec() { title="$1 [$TITLE]" title=`echo $title | tr '\n' ' '` - print -Pn "\e]2;$title\a\e]1;\a" + #print -Pn "\e]2;$title\a\e]1;\a" + print -Pn "\033]0;$title\007" }; - ;; screen*) if [ -x /usr/bin/screen ] || [ -x /usr/local/bin/screen ]; then if grep -i -q screen <<< $TERMCAP ; then |