Home | History | Annotate | Download | only in lib

Lines Matching refs:scratch

66 int scan_key_getsize(char *scratch, int miliwait, unsigned *xx, unsigned *yy)
70 if (512&(key = scan_key(scratch, miliwait))) {
145 // scratch space is necessary because last char of !seq could start new seq
146 // Zero out first byte of scratch before first call to scan_key
148 int scan_key(char *scratch, int miliwait)
160 if (*scratch) {
166 scratch[(1+*scratch)&15] = 0;
167 sscanf(scratch+1, "\033%n[%n%3u%n;%n%3u%nR%n", pos, pos+1, &y,
171 *scratch = 0;
173 } else for (i=0; i<6; i++) if (pos[i]==*scratch) maybe = 1;
178 for (j = 0; j<*scratch; j++) if (scratch[j+1] != test[j]) break;
179 if (j == *scratch) {
183 *scratch = 0;
201 if (toys.signal || 1 != read(0, scratch+1+*scratch, 1))
203 ++*scratch;
207 if (!*scratch) return -2;
208 i = scratch[1];
209 if (--*scratch) memmove(scratch+1, scratch+2, *scratch);