Blame docs/doc/repeat/set_kbd_repeat-1
|
Packit Service |
50ad14 |
From: johnsonm@stolaf.edu (Michael K. Johnson)
|
|
Packit Service |
50ad14 |
Subject: changing keyboard repeat rate.
|
|
Packit Service |
50ad14 |
|
|
Packit Service |
50ad14 |
OK, I have gotten several requests for info on how to change the
|
|
Packit Service |
50ad14 |
keyboard repeat rate, so here goes. Note: I can't just give diffs,
|
|
Packit Service |
50ad14 |
because there are lots of options, and for heaven's sake it's only
|
|
Packit Service |
50ad14 |
three lines of code.
|
|
Packit Service |
50ad14 |
|
|
Packit Service |
50ad14 |
In boot/setup.S, there are the lines:
|
|
Packit Service |
50ad14 |
|
|
Packit Service |
50ad14 |
! set the keyboard repeat rate to the max
|
|
Packit Service |
50ad14 |
|
|
Packit Service |
50ad14 |
mov ax,#0x0305
|
|
Packit Service |
50ad14 |
mov bx,0x0000
|
|
Packit Service |
50ad14 |
int 0x16
|
|
Packit Service |
50ad14 |
|
|
Packit Service |
50ad14 |
If you don't want to change the repeat rate at all, just comment out
|
|
Packit Service |
50ad14 |
these lines by prefacing them with !'s. If you want something in the
|
|
Packit Service |
50ad14 |
middle, change the
|
|
Packit Service |
50ad14 |
mov bx,0x0000
|
|
Packit Service |
50ad14 |
to mov bx,0x????
|
|
Packit Service |
50ad14 |
where ???? is determined by (from Ralf Brown's interrupt list)
|
|
Packit Service |
50ad14 |
bh = delay value (0x00 = 250 ms to 0x03 = 1000 ms (one second))
|
|
Packit Service |
50ad14 |
this is the delay before the repeat starts happening
|
|
Packit Service |
50ad14 |
bl = repeat rate (0x00 = 30/sec to 0x0c = 10/sec [default] to 0x1f = 2/sec)
|
|
Packit Service |
50ad14 |
|
|
Packit Service |
50ad14 |
I use mov bx,0x0006
|
|
Packit Service |
50ad14 |
to delay 1/4 sec, then repeat at what I think is a comfortable rate.
|
|
Packit Service |
50ad14 |
I am too lazy to calculate the exact speed -- maybe 20/sec? ;-)
|
|
Packit Service |
50ad14 |
|
|
Packit Service |
50ad14 |
Hope this helps people.
|
|
Packit Service |
50ad14 |
|
|
Packit Service |
50ad14 |
michaelkjohnson
|
|
Packit Service |
50ad14 |
johnsonm@stolaf.edu
|