ignore | lines
このコミットが含まれているのは:
コミット
6a669af1cd
4
uttt.c
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");
|
printf("Connection closed.\n");
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
if (index == 0) {
|
if (index == 0 && byte == '|') {
|
||||||
|
if (ut_ignore_line(sock)) {return -1;}
|
||||||
|
} else if (index == 0) {
|
||||||
*x = byte - 0x30;
|
*x = byte - 0x30;
|
||||||
} else if (index == 2) {
|
} else if (index == 2) {
|
||||||
*y = byte - 0x30;
|
*y = byte - 0x30;
|
||||||
|
|
読み込み中…
新しいイシューから参照