pane()
# Send command to the all the panes in the target window.
xpns_send_commands() {
local _window_name="$1" ; shift
local _index_offset="$1" ; shift
local _repstr="$1" ; shift
local _cmd="$1" ; shift
local _index=0
local _pane_index
for arg in "$@"
do
_pane_index=$(( _index + _index_offset ))
${TMUX_XPANES_EXEC} send-keys -t "${_window_name}.${_pane_index}" "${_cmd//${_repstr}/${arg}}" C-m
_index=$(( _index + 1 ))
done
}