Lines Matching refs:scratch
66 int scan_key_getsize(char *scratch, int miliwait, unsigned *xx, unsigned *yy) in scan_key_getsize() argument
70 if (512&(key = scan_key(scratch, miliwait))) { in scan_key_getsize()
148 int scan_key(char *scratch, int miliwait) in scan_key() argument
160 if (*scratch) { in scan_key()
166 scratch[(1+*scratch)&15] = 0; in scan_key()
167 sscanf(scratch+1, "\033%n[%n%3u%n;%n%3u%nR%n", pos, pos+1, &y, in scan_key()
171 *scratch = 0; in scan_key()
173 } else for (i=0; i<6; i++) if (pos[i]==*scratch) maybe = 1; in scan_key()
178 for (j = 0; j<*scratch; j++) if (scratch[j+1] != test[j]) break; in scan_key()
179 if (j == *scratch) { in scan_key()
183 *scratch = 0; in scan_key()
201 if (toys.signal || 1 != read(0, scratch+1+*scratch, 1)) in scan_key()
203 ++*scratch; in scan_key()
207 if (!*scratch) return -2; in scan_key()
208 i = scratch[1]; in scan_key()
209 if (--*scratch) memmove(scratch+1, scratch+2, *scratch); in scan_key()