diff --git a/uttt.c b/uttt.c index aeb5649..f4d6574 100644 --- a/uttt.c +++ b/uttt.c @@ -475,7 +475,9 @@ int ut_sockgetpos(const struct ut_state *state, int sock, int *x, int *y, bool r printf("Connection closed.\n"); return -1; } - if (index == 0) { + if (index == 0 && byte == '|') { + if (ut_ignore_line(sock)) {return -1;} + } else if (index == 0) { *x = byte - 0x30; } else if (index == 2) { *y = byte - 0x30;