TIP: Click on subject to list as thread! ANSI
echo: z3_pascal
to: Karl Mueller
from: Peter Watney
date: 1996-03-08 09:21:00
subject: Kbd Repeat rate

Monday March 04 1996 10:10, Karl Mueller wrote to Anyone:

 KM> I'm currently writing a pascal program which needs fast keyboard input,
 KM> but I have the problem that whenever I hold a key down (to move left and
 KM> right) there is a small delay after the first keypress is read. Is there
 KM> any way to remove that delay? Also, in a book of mine it says that
 KM> keyboard repeat rate is controlled by INT 16h function 3, but it doesn't
 KM> say what inputs to give it. Does anyone know what inputs to give it?

Set Repeat Rate (Interrupt 16H Service 3)
Use with AT and PS/2

Register Contents on Entry
AH-3
AL-5
BH-Repeat Delay (msec.)
   00h - 250
   01h - 500
   02h - 750
   03h - 1000
BL - Repeat Rate (Characters per Second)
   00h - 30.0
   01h - 26.7
   02h - 24.0
   03h - 21.8
   04h - 20.0
etc, etc down to
   1Dh - 2.3
   1Eh - 2.1
   1Fh - 2.0

Example:
; Change the repeat rate to 10 characters per second and
; the delay to 500milliseconds.
MOV AH,3
MOV AL,5
MOV BH,1
MOV BL,0Ch
INT 16h

Regards,
Peter

--- GEcho 1.00
* Origin: Do you get my point (3:620/243.71)
SEEN-BY: 633/267 270
@PATH: 620/243 711/808 50/99 635/544 727 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.