6 [ -z "$TEST_TMUX" ] && TEST_TMUX
=$
(readlink
-f ..
/tmux
)
7 TMUX
="$TEST_TMUX -Ltest"
8 $TMUX kill-server
2>/dev
/null
11 trap "rm -f $TMP" 0 1 15
13 $TMUX -f/dev
/null new
-d -x7 -y2 \
14 "printf 'abcdefabcdefab'; printf '\e[2;7H'; cat" ||
exit 1
15 $TMUX set -g window-size manual ||
exit 1
17 $TMUX display
-pF '#{cursor_x} #{cursor_y} #{cursor_character}' >>$TMP
18 $TMUX capturep
-p|
awk '{print NR-1,$0}' >>$TMP
19 $TMUX resizew
-x5 ||
exit 1
20 $TMUX display
-pF '#{cursor_x} #{cursor_y} #{cursor_character}' >>$TMP
21 $TMUX capturep
-p|
awk '{print NR-1,$0}' >>$TMP
22 $TMUX resizew
-x7 ||
exit 1
23 $TMUX display
-pF '#{cursor_x} #{cursor_y} #{cursor_character}' >>$TMP
24 $TMUX capturep
-p|
awk '{print NR-1,$0}' >>$TMP
26 cmp -s $TMP cursor-test3.result ||
exit 1
28 $TMUX kill-server
2>/dev
/null