Browse Source

fix ptty test program. don't quit after pos request

Jan Klemkow 5 years ago
parent
commit
1ce09d0ab8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      ptty.c

+ 1 - 1
ptty.c

@@ -131,7 +131,7 @@ main(int argc, char *argv[])
 			/* handle cursor position request */
 			if (strcmp("\033[6n", buf) == 0) {
 				dprintf(mfd, "\033[1;25R", 1, 1);
-				break;
+				continue;
 			}
 
 			if (write(STDOUT_FILENO, buf, n) == -1)