Lines Matching defs:delay
40 * -D autorepeat delay sets autorepeat dealy, unit in ms
113 char *copt, *aopt, *delay, *rate, *layout_name, *b_type, *freq_str;
159 delay = optarg;
202 if (Dflag && atoi(delay) <= 0) {
203 (void) fprintf(stderr, "Invalid arguments: -D %s\n", delay);
244 if (Dflag && (error = set_repeat_delay(delay, kbd)) != 0)
479 * also, included the autorepeat delay and rate being used
486 /* these two variables are used for getting delay&rate */
487 int delay, rate;
488 delay = rate = 0;
503 /* below code is used to get the autorepeat delay and rate */
504 if (ioctl(kbd, KIOCGRPTDELAY, &delay)) {
505 perror("ioctl (kbd get repeat delay)");
514 (void) printf("delay(ms)=%d\n", delay);
571 set_rptdelay(int delay, int kbd)
576 * b. the input is a integer less than the minimal delay setting.
580 if (ioctl(kbd, KIOCSRPTDELAY, &delay) == -1) {
581 if (delay < KIOCRPTDELAY_MIN)
582 (void) fprintf(stderr, "kbd: specified delay %d is "
583 "less than minimum %d\n", delay, KIOCRPTDELAY_MIN);
585 perror("kbd: set repeat delay");
593 * this routine set autorepeat delay
598 int delay = atoi(delay_str);
600 return (set_rptdelay(delay, kbd));
872 static char *usage2 = " [-c on|off][-D delay][-R rate][-d keyboard device]";