From 0e8aee1b2dfb3e11638cc6e57e04b5bbad9edc8d Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Thu, 30 Jan 2020 08:07:47 +0000 Subject: bind-key test. --- regress/commands/bind-key.sh | 54 ++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 52 insertions(+), 2 deletions(-) diff --git a/regress/commands/bind-key.sh b/regress/commands/bind-key.sh index 4f17617b..64e08a3d 100644 --- a/regress/commands/bind-key.sh +++ b/regress/commands/bind-key.sh @@ -11,6 +11,56 @@ TMP=$(mktemp) trap "rm -f $TMP" 0 1 15 $TMUX lscm|grep ^bind-key >$TMP -echo "bind-key (bind) [-cnr] [-T key-table] [-N note] key command [arguments]"|cmp -s $TMP - || exit 1 +echo "bind-key (bind) [-nr] [-T key-table] [-N note] key command [arguments]"|cmp -s $TMP - || exit 1 -# XXX +$TMUX -f/dev/null new -d +$TMUX bind -n X rename foo +$TMUX lsk -Troot X >$TMP +cat <$TMP +cat <$TMP +cat <$TMP +cat <$TMP +cat <$TMP +cat <$TMP +cat <