ignore | lines

このコミットが含まれているのは:
ninya9k 2023-11-15 07:48:05 +00:00
コミット 6a669af1cd
1個のファイルの変更3行の追加1行の削除

4
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;