From 6a669af1cd0ab3609a60394a9c47b372052bb0a0 Mon Sep 17 00:00:00 2001 From: ninya9k <> Date: Wed, 15 Nov 2023 07:48:05 +0000 Subject: [PATCH] ignore | lines --- uttt.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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;