[hackers] [scroll] fix ptty test program. don't quit after pos request || Jan Klemkow
commit 1ce09d0ab8b474c9f2b293080fc2c17b571aff14
Author: Jan Klemkow <j.klemkow_AT_wemelug.de>
AuthorDate: Thu Apr 23 23:42:56 2020 +0200
Commit: Jan Klemkow <j.klemkow_AT_wemelug.de>
CommitDate: Thu Apr 23 23:42:56 2020 +0200
fix ptty test program. don't quit after pos request
diff --git a/ptty.c b/ptty.c
index 7f6df51..d4b49e9 100644
--- a/ptty.c
+++ b/ptty.c
_AT_@ -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)
Received on Thu Apr 23 2020 - 23:43:45 CEST
This archive was generated by hypermail 2.3.0
: Thu Apr 23 2020 - 23:48:36 CEST