commit fdb54c317eb9215cbfe063c7086a9cefba334f25
Author: Jochen Sprickerhof <[email protected]>
AuthorDate: Fri Apr 24 00:04:59 2020 +0200
Commit: Jochen Sprickerhof <[email protected]>
CommitDate: Fri Apr 24 00:04:59 2020 +0200
Fix up test
diff --git a/ptty.c b/ptty.c
index d4b49e9..c99c010 100644
--- a/ptty.c
+++ b/ptty.c
@@ -130,7 +130,7 @@ main(int argc, char *argv[])
/* handle cursor position request */
if (strcmp("\033[6n", buf) == 0) {
- dprintf(mfd, "\033[1;25R", 1, 1);
+ dprintf(mfd, "\033[25;1R", 1, 1);
continue;
}
diff --git a/up.sh b/up.sh
index 329476e..95ae93c 100755
--- a/up.sh
+++ b/up.sh
@@ -5,4 +5,4 @@ set -eu
jot 50 > tmp.log
(sleep 1; printf "\033[5;2~"; sleep 1; ) \
- | ktrace -i ./ptty ./scroll ksh -c "tail -fn 50 tmp.log" > out.log
+ | ./ptty ./scroll tail -fn 50 tmp.log > out.log