From 90c9310555dca3630478f0ed0cb8495b9cb6463f Mon Sep 17 00:00:00 2001 From: Chmouel Boudjnah Date: Thu, 9 Feb 2012 16:27:58 +0100 Subject: [PATCH] Remove TMUX support. After discussion on the mailing list tmux is not used much and since it was broken for a while remove that support. Fixes bug 928967. Change-Id: Iff1eea45190f4ef873c60b3563fe94359702446d --- stack.sh | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/stack.sh b/stack.sh index c0c30c28e3..6968c90964 100755 --- a/stack.sh +++ b/stack.sh @@ -1284,17 +1284,12 @@ fi function screen_it { NL=`echo -ne '\015'` if [[ "$ENABLED_SERVICES" =~ "$1" ]]; then - if [[ "$USE_TMUX" =~ "yes" ]]; then - tmux new-window -t stack -a -n "$1" "bash" - tmux send-keys "$2" C-M - else - screen -S stack -X screen -t $1 - # sleep to allow bash to be ready to be send the command - we are - # creating a new window in screen and then sends characters, so if - # bash isn't running by the time we send the command, nothing happens - sleep 1.5 - screen -S stack -p $1 -X stuff "$2$NL" - fi + screen -S stack -X screen -t $1 + # sleep to allow bash to be ready to be send the command - we are + # creating a new window in screen and then sends characters, so if + # bash isn't running by the time we send the command, nothing happens + sleep 1.5 + screen -S stack -p $1 -X stuff "$2$NL" fi }