From: Oleg Broytman Date: Sun, 26 Apr 2015 21:53:27 +0000 (+0300) Subject: xtitle: set caption for GNU screen window X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=58d23a654eb7f78f4ba203425b64583a9ae4e6ca;p=dotfiles.git xtitle: set caption for GNU screen window --- diff --git a/bin/xtitle b/bin/xtitle index 63bad0e..6df8cdc 100755 --- a/bin/xtitle +++ b/bin/xtitle @@ -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