dvtm

dynamic virtual terminal manager - with my changes
git clone https://pi.duncano.de/git/dvtm.git
Log | Files | Refs | README | LICENSE

commit b45828dcc86dba889386d4052410d95e7e78eebe
parent 223cce32b9ce43ad2917119fe2b03babb798a2a7
Author: Marc André Tanner <mat@brain-dump.org>
Date:   Thu,  5 Jan 2017 19:15:31 +0100

Make ./testsuite.sh work at least on my system

This is all a bit fragile.

Diffstat:
testsuite.sh | 12+++++-------
1 file changed, 5 insertions(+), 7 deletions(-)

diff --git a/testsuite.sh b/testsuite.sh @@ -3,7 +3,7 @@ MOD="" # CTRL+g ESC="" # \e DVTM="./dvtm" -DVTM_EDITOR="vis" +export DVTM_EDITOR="vis" LOG="dvtm.log" TEST_LOG="$0.log" UTF8_TEST_URL="http://www.cl.cam.ac.uk/~mgk25/ucs/examples/UTF-8-demo.txt" @@ -16,7 +16,7 @@ dvtm_input() { } dvtm_cmd() { - printf "${MOD}$1\n" + printf "${MOD}$1" sleep 1 } @@ -34,13 +34,11 @@ test_copymode() { # requires wget, diff, vis dvtm_cmd 'e' dvtm_input "?UTF-8 encoded\n" dvtm_input '^kvG1k$' - dvtm_input ":wq\n" + dvtm_input ":wq!\n" sleep 1 - rm -f "$COPY" - sh_cmd "vis $COPY" - dvtm_input 'i' + sh_cmd "cat <<'EOF' > $COPY" dvtm_cmd 'p' - dvtm_input "dd:wq\n" + sh_cmd 'EOF' while [ ! -r "$COPY" ]; do sleep 1; done; dvtm_input "exit\n" diff -u "$FILENAME" "$COPY" 1>&2