KSTRATE (Set Typematic Rate)

Purpose

Sets typematic rate.

Syntax

#include <sys/inputdd.h>

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

Description

The KSTRATE ioctl subroutine call changes the rate at which a pressed key repeats itself, specified in number of repeats per second. The minimum rate is 2 repeats per second, and the maximum rate is 30 repeats per second.

When keyboard diagnostics are enabled, the KSTRATE 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 an integer that contains the desired typematic rate.