Newsgroups: comp.lang.pascal
Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!snorkelwacker.mit.edu!thunder.mcrcim.mcgill.edu!quiche!einstein
From: einstein@cs.mcgill.ca (Michael CHOWET)
Subject: Re: Overcoming delay thru use of keyboard buffer
Message-ID: <1991Jun16.232605.29710@cs.mcgill.ca>
Summary: ROM Bios Keybd Service 16h
Keywords: keyboard,buffer,delay
Sender: news@cs.mcgill.ca (Netnews Administrator)
Organization: SOCS, McGill University, Montreal, Canada
References: <1991Jun7.070027.3308@images.cs.und.ac.za> <7578@vice.ICO.TEK.COM>
Date: Sun, 16 Jun 91 23:26:05 GMT

In article <7578@vice.ICO.TEK.COM> bobb@vice.ICO.TEK.COM (Bob Beauchaine) 
writes:
>In article cyhutson@images.cs.und.ac.za writes:
>>Hi there!!
>>
>>Can anyone help me?!
>>
>>What I want to do is the following :
>>* reduce the delay that occurs through the character having to pass via 
>>  the keyboard buffer.
>>
>>So, of course, how do I do this??
>
>  Get a copy of quickeys.com.  It's a tsr utility that takes up only
>  a few hundred bytes of memory per invocation.  Each time you run the
>  utility, the delay between keystrokes is shortened.  Available on
>  PCMagnet on Compuserve, or possibly at an anonymous ftp site, since
>  it is a public domain program.

  Another option to look at if one has the time is writing a little program
of one's own. The ROM BIOS provides for the adjusting of both the typematic
rate and the typematic delay. One can get at them through service 03 of the
interrupt 16h. Place 03h in AH and 05h in AL. BL should then be loaded with
a value between 00h and 1Fh that corresponds to char/s according to a table
I have here but I don't feel like typing. If you are interested to see this
table, it's on page 219 of "_The_New_Peter_Norton_Programmer's_Guide_to_the 
IBM_PC_and_PS/2_". BH should hold a value for the typematic delay, ranging
from 00h to 03h. (Starting at 250 ms and going by increments of 250 ms).

  BTW, default values for the delay and rate are 500ms for the delay (01h
in BH) and either 10.0 or 10.9 chars/sec depending on whether it's a PC/AT
or if it's a PS/2 (oh, and for a feel for the values, that's either 0Ch or
0Bh in BL).

_______________________________________________________________________________
|        McGill University, Montreal, Canada       |"The advocate will refrain|
| Computer Science Undergrad Society - VP External | from making her opponent |
|__ Michael Chowet _ I-Net:einstein@cs.mcgill.ca __|____ disappear" -Data ____|
