Add test for -x and -y too.

This commit is contained in:
Nicholas Marriott 2017-05-28 20:15:45 +01:00
parent eb1f362687
commit 1e1e0f1fbb

View File

@ -1,7 +1,8 @@
#!/bin/sh
# 947
# size in control mode should change after refresh-client -C
# size in control mode should change after refresh-client -C, and -x and -y
# should work without -d for control clients
PATH=/bin:/usr/bin
TERM=screen
@ -36,4 +37,13 @@ grep ^: $TMP >$OUT
printf ":80 24\n:80 24\n"|cmp -s $OUT || exit 1
$TMUX kill-server 2>/dev/null
cat <<EOF|$TMUX -C new -x 100 -y 50 >$TMP
ls -F':#{session_width} #{session_height}'
refresh -C 80,24
ls -F':#{session_width} #{session_height}'
EOF
grep ^: $TMP >$OUT
printf ":100 50\n:80 24\n"|cmp -s $OUT || exit 1
$TMUX kill-server 2>/dev/null
exit 0