Skip to content

Commit

Permalink
GH-84 Fix alineGetRowCol() terminal mode change.
Browse files Browse the repository at this point in the history
  • Loading branch information
SirWumpus committed Nov 30, 2024
1 parent ef3b784 commit 8f806e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/aline.c
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit 8f806e0

Please sign in to comment.