[ Next Article | Previous Article | Book Contents | Library Home | Legal | Search ]
Kernel and Subsystems Technical Reference, Volume 2

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

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%.

Implementation Specifics

This ioctl subroutine call is part of Base Operating System (BOS) Runtime.

Related Information

The chhwkbd command.


[ Next Article | Previous Article | Book Contents | Library Home | Legal | Search ]