Use C-M for return carriage for tmux.

Conflicts:

	stack.sh
This commit is contained in:
Chmouel Boudjnah 2011-11-02 18:27:40 +01:00
parent c20428241a
commit 3ad59ea151

View file

@ -915,6 +915,10 @@ 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
@ -922,6 +926,7 @@ function screen_it {
sleep 1
screen -S stack -p $1 -X stuff "$2$NL"
fi
fi
}
# create a new named screen to run processes in