2017-05-28 18:19:10 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# new-session without clients should be the right size
|
|
|
|
|
|
|
|
PATH=/bin:/usr/bin
|
|
|
|
TERM=screen
|
|
|
|
|
|
|
|
[ -z "$TEST_TMUX" ] && TEST_TMUX=$(readlink -f ../tmux)
|
|
|
|
TMUX="$TEST_TMUX -Ltest"
|
|
|
|
$TMUX kill-server 2>/dev/null
|
|
|
|
|
|
|
|
TMP=$(mktemp)
|
|
|
|
trap "rm -f $TMP" 0 1 15
|
|
|
|
|
|
|
|
$TMUX -f/dev/null new -d </dev/null || exit 1
|
|
|
|
sleep 1
|
2019-03-12 13:58:25 +00:00
|
|
|
$TMUX ls -F "#{window_width} #{window_height}" >$TMP
|
2018-03-02 15:08:17 +00:00
|
|
|
printf "80 24\n"|cmp -s $TMP - || exit 1
|
2017-05-28 18:19:10 +00:00
|
|
|
$TMUX kill-server 2>/dev/null
|
|
|
|
|
|
|
|
$TMUX -f/dev/null new -d -x 100 -y 50 </dev/null || exit 1
|
|
|
|
sleep 1
|
2019-03-12 13:58:25 +00:00
|
|
|
$TMUX ls -F "#{window_width} #{window_height}" >$TMP
|
2018-03-02 15:08:17 +00:00
|
|
|
printf "100 50\n"|cmp -s $TMP - || exit 1
|
2017-05-28 18:19:10 +00:00
|
|
|
$TMUX kill-server 2>/dev/null
|
|
|
|
|
|
|
|
exit 0
|