]> git.phdru.name Git - dotfiles.git/commitdiff
xtitle: set caption for GNU screen window
authorOleg Broytman <phd@phdru.name>
Sun, 26 Apr 2015 21:53:27 +0000 (00:53 +0300)
committerOleg Broytman <phd@phdru.name>
Sun, 26 Apr 2015 21:53:27 +0000 (00:53 +0300)
bin/xtitle

index 63bad0eea7128a770eccdde239b1718422f37951..6df8cdc282266507ad66b887b28e82fbdc0dbcaa 100755 (executable)
@@ -7,6 +7,12 @@ case "$TERM" in
       else
          TITLE="$@"
       fi
-      echo -ne "\033]0;${TITLE}\007"
+      echo -ne "\033]0;${TITLE}\007" # Set xterm caption
+   ;;
+esac
+
+case "$TERM" in
+   screen*)
+      echo -ne "\033k${TITLE}\033\\" # Set screen caption
    ;;
 esac