KSTDELAY (Set Typematic Delay)

Purpose

Sets typematic delay.

Syntax

#include <sys/inputdd.h>

int ioctl (FileDescriptor, KSTDELAY, Arg)
int  FileDescriptor;
uint * Arg;

Description

The KSTDELAY ioctl subroutine call sets the time, specified in milliseconds, that a key must be held down before it repeats.

When keyboard diagnostics are enabled, the KSTDELAY ioctl subroutine call fails and sets the errno global variable to a value of EBUSY.

Parameters

Item Description
FileDescriptor Specifies the open file descriptor for the keyboard.
Arg Specifies the address of a value representing the typematic delay. The Arg parameter can be one of the following delay values:
#define KSTDLY250   1   250ms.
#define KSTDLY500   2   500ms.
#define KSTDLY750   3   750ms.
#define KSTDLY1000  4  1000ms.
Note: For the 106-keyboard, the delays are 300, 400®, 500, and 600 milliseconds. All delays are +/- 20%.