Posts: 19
Threads: 9
Joined: Nov 2003
How can I disable the delay when depressing a key on the keyboard so that pressing and holding any key immediately causes it to repeat?
Is it possible to disable the repeating itself?
Is it possible to clear the cache of keyboard entries, so that they don't get backed up and cause irritating beeps and pauses?
astrator of Crocodiles
Posts: 3,288
Threads: 167
Joined: Nov 2001
Posts: 2,765
Threads: 138
Joined: Nov 2002
im just saying it is possible but it's too late for me to find the answer.
edit: answer to late
Back by popular demand!
I will byte and nibble you bit by bit until nothing remains but crumbs.
Posts: 1,845
Threads: 44
Joined: Aug 2002
Check out port 60h. It is the keyboard command port.
Posts: 440
Threads: 65
Joined: Sep 2001
That's the typematic rate (also known as a repeat rate) and is the amount of time a computer will repeat a single character when its key is held down. You can change that value via port &H60 as Neo said.
This changes the typematic rate for me in dos. I grabbed this off a qbasic news group. I think the original poster was named brainsawx.
Code:
OUT &H60, &HF3
FOR delay = 1 TO 1500: NEXT
OUT &H60, value%
The delay may have to be longer on faster pc's. The value% is the new typematic to set. I think &H2B is the system default.
- Dav
Posts: 1,845
Threads: 44
Joined: Aug 2002
Use 0 for value% if you want the fastest mode.