From 58d23a654eb7f78f4ba203425b64583a9ae4e6ca Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Mon, 27 Apr 2015 00:53:27 +0300 Subject: [PATCH] xtitle: set caption for GNU screen window --- bin/xtitle | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 -- 2.39.5