Lines Matching refs:seq
188 char seq[64];
201 snprintf(seq,64,"\x1b[0G");
202 if (write(fd,seq,strlen(seq)) == -1) return;
207 snprintf(seq,64,"\x1b[0K");
208 if (write(fd,seq,strlen(seq)) == -1) return;
210 snprintf(seq,64,"\x1b[0G\x1b[%dC", (int)(pos+plen));
211 if (write(fd,seq,strlen(seq)) == -1) return;
232 char seq[2];
271 seq[1] = 65;
274 seq[1] = 66;
278 if (read(fd,seq,2) == -1) break;
279 if (seq[0] == 91 && seq[1] == 68) {
286 } else if (seq[0] == 91 && seq[1] == 67) {
293 } else if (seq[0] == 91 && (seq[1] == 65 || seq[1] == 66)) {
302 history_index += (seq[1] == 65) ? 1 : -1;