3 # capture-pane -e for OSC 8 hyperlink
8 [ -z "$TEST_TMUX" ] && TEST_TMUX
=$
(readlink
-f ..
/tmux
)
9 TMUX
="$TEST_TMUX -Ltest"
12 trap "rm -f $TMP $TMP2" 0 1 15
13 $TMUX kill-server
2>/dev
/null
16 $TMUX -f/dev
/null new
-d "
18 $TMUX capturep -peS0 -E1 >$TMP"
21 cmp $TMP $TMP2 ||
exit 1
25 do_test
'\033]8;id=1;https://github.com\033\\test1\033]8;;\033\\\n' '\033]8;id=1;https://github.com\033\\test1\033]8;;\033\\\n' ||
exit 1
26 do_test
'\033]8;;https://github.com/tmux/tmux\033\\test1\033]8;;\033\\\n' '\033]8;;https://github.com/tmux/tmux\033\\test1\033]8;;\033\\\n' ||
exit 1
28 $TMUX has
2>/dev
/null
&& exit 1