4 # size in control mode should change after refresh-client -C, and -x and -y
5 # should work without -d for control clients
10 [ -z "$TEST_TMUX" ] && TEST_TMUX
=$
(readlink
-f ..
/tmux
)
11 TMUX
="$TEST_TMUX -Ltest"
12 $TMUX kill-server
2>/dev
/null
16 trap "rm -f $TMP $OUT" 0 1 15
18 $TMUX -f/dev
/null new
-d ||
exit 1
20 cat <<EOF|$TMUX -C a >$TMP
21 ls -F':#{window_width} #{window_height}'
25 $TMUX ls -F':#{window_width} #{window_height}' >>$OUT
26 printf ":80 24\n:100 50\n"|
cmp -s $OUT - ||
exit 1
27 $TMUX kill-server
2>/dev
/null
29 $TMUX -f/dev
/null new
-d ||
exit 1
31 cat <<EOF|$TMUX -f/dev/null -C a >$TMP
32 ls -F':#{window_width} #{window_height}'
36 $TMUX ls -F':#{window_width} #{window_height}' >>$OUT
37 printf ":80 24\n:80 24\n"|
cmp -s $OUT - ||
exit 1
38 $TMUX kill-server
2>/dev
/null
40 cat <<EOF|$TMUX -f/dev/null -C new -x 100 -y 50 >$TMP
41 ls -F':#{window_width} #{window_height}'
45 $TMUX ls -F':#{window_width} #{window_height}' >>$OUT
46 printf ":100 50\n:80 24\n"|
cmp -s $OUT - ||
exit 1
47 $TMUX kill-server
2>/dev
/null