From 8f806e03dd6b0bb99fbdb9843266427e3ee3d536 Mon Sep 17 00:00:00 2001 From: Anthony Howe Date: Fri, 29 Nov 2024 19:57:13 -0500 Subject: [PATCH] GH-84 Fix alineGetRowCol() terminal mode change. --- src/aline.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/aline.c b/src/aline.c index bcb529d..8ec1d2d 100644 --- a/src/aline.c +++ b/src/aline.c @@ -128,7 +128,7 @@ alineGetRowCol(int pos[2]) { char *stop, report[12]; int n, fd = fileno(stdout); - (void) tcsetattr(fd, TCSANOW, &tty_modes[ALINE_RAW]); + (void) tcsetattr(fd, TCSAFLUSH, &tty_modes[ALINE_RAW]); (void) write(fd, ANSI_REPORT, sizeof (ANSI_REPORT)-1); n = read(fd, report, sizeof (report)); report[n] = '\0';