From: Silvio Rhatto Date: Fri, 24 Oct 2014 18:36:39 +0000 (-0200) Subject: Enhancing window_title() X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=ad1a39d82d3c707f02d4660d8028d05b8ec70b6b;p=termplex.git Enhancing window_title() --- diff --git a/shell b/shell index 0d6758e..4c4321a 100755 --- a/shell +++ b/shell @@ -12,9 +12,9 @@ COMMAND="$2" # http://stackoverflow.com/questions/899609/gnu-screen-run-script-that-sends-commands-to-the-screen-session-it-is-being-run function window_title { if [ -n "$STY" ]; then - screen -p $WINDOW -X title $1 + screen -p $WINDOW -X title "$*" else - xtitle $1 + xtitle "$*" fi }