diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2020-03-21 13:51:42 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2020-03-26 10:16:05 +0000 |
commit | 75a93207d4cc9bb35c5c875267ce28e770a8b520 (patch) | |
tree | cfbbad9950e04af44d11a1a59c135b83c1cfd483 | |
parent | f652d777a61c1591805a6251160e35674699ced8 (diff) | |
download | rtmux-75a93207d4cc9bb35c5c875267ce28e770a8b520.tar.gz rtmux-75a93207d4cc9bb35c5c875267ce28e770a8b520.tar.bz2 rtmux-75a93207d4cc9bb35c5c875267ce28e770a8b520.zip |
Update capture-pane test, from Johannes Altmanninger.
-rw-r--r-- | regress/capture-pane-sgr0.sh | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/regress/capture-pane-sgr0.sh b/regress/capture-pane-sgr0.sh index 79d96a38..0dd9cd82 100644 --- a/regress/capture-pane-sgr0.sh +++ b/regress/capture-pane-sgr0.sh @@ -13,11 +13,18 @@ $TMUX kill-server 2>/dev/null TMP=$(mktemp) trap "rm -f $TMP" 0 1 15 -$TMUX -f/dev/null new -d \ - "printf '\033[31;42;1mabc\033[0;31mdef'; $TMUX capturep -peS0 -E0 >$TMP" +$TMUX -f/dev/null new -d " + printf '\033[31;42;1mabc\033[0;31mdef\n' + printf '\033[m\033[100m bright bg \033[m' + $TMUX capturep -peS0 -E1 >>$TMP" + + sleep 1 -printf '\033[1m\033[31m\033[42mabc\033[0m\033[31m\033[49mdef\033[39m\n'| \ - cmp - $TMP || exit 1 + +( + printf '\033[1m\033[31m\033[42mabc\033[0m\033[31m\033[49mdef\033[39m\n' + printf '\033[100m bright bg \033[49m\n' +) | cmp - $TMP || exit 1 $TMUX has 2>/dev/null && exit 1 |