瀏覽代碼

Fix up test

Jochen Sprickerhof 5 年之前
父節點
當前提交
fdb54c317e
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      ptty.c
  2. 1 1
      up.sh

+ 1 - 1
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;
 			}
 

+ 1 - 1
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