[comp.sys.ibm.pc] Increasing MS-DOS keyboard buffer size

creps@silver.bacs.indiana.edu (Steve Creps) (01/15/88)

   I'm looking for a patch to increase the size of the keyboard buffer
in MS-DOS. For me, typeahead of about 16 characters just doesn't get it.
I'd rather have a patch to DOS than a TSR program, since a TSR will take
up more memory, and I've experienced slow-downs in some keyboard-intensive
activities (read games).
   I can't remember how typeahead is set up in DOS. If it's allocated some
memory for the keyboard buffer, then there should be a patch. However, if
it stacks interrupts, this might not be possible to expand. So, if I'm
barking up the wrong tree, someone please let me know.

-	-	-	-	-	-	-	-	-
Steve Creps on the VAX 8650 running Ultrix 2.0-1 at Indiana University.
creps@silver.bacs.indiana.edu, ...iuvax!silver!creps, creps@iubacs.bitnet
"F-14 Tomcat! There IS no substitute."

davidsen@steinmetz.steinmetz.UUCP (William E. Davidsen Jr) (01/19/88)

In article <609@silver.bacs.indiana.edu> creps@silver.UUCP (Steve Creps) writes:
| 
|    I'm looking for a patch to increase the size of the keyboard buffer
| in MS-DOS. For me, typeahead of about 16 characters just doesn't get it.

I don't know where DOS would put the extra buffer where it wouldn't
reduce the program memory available. This TSR has worked for me for
about five years now, and if it slows anything up I haven't noticed it.
Takes about 250 bytes, extends the buffer to 128 bytes. Note: DOS passes
the information to the programs in a 128 bytes buffer, so longer buffers
are only useful for multiple command lines.

I got this as a debug script, but here it is uuencoded.

begin 644 buf128.exe
MsuH```h````@````__\@`h``````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M``````````````````````cILPd`````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M`````````P`c`oJ|FHI`oasaKM``h[ciHL~f@`FnQX|`gpXiHD~g``FBQ]v
MkHLVapev@\xb@Xc`whcO@l`kCLV`Pe~}apNBqRcQ@ja_@la|@n^`P`NBsxe
M`uXgv\_[bNqTb[l}cg^SgqaS_Np^BZA`PdNnPxe`wsRtXOxkHLg@\lb@Lc
M`whcNPl`kCL~apdNBqXc`uOo^ElNBQXc`rX[g@takHLgv_Oj`@`fNd``CL`F
MHa|`a\_ZN```CL`FQPxD``|aiHPni@`FQPyx`ePaiHPnv@`NQPxc`pl`kL|f
Bapdc`oOfa@d`iQZZ``arNKxbRP`````````````````````N
`
end

-- 
	bill davidsen		(wedu@ge-crd.arpa)
  {uunet | philabs | seismo}!steinmetz!crdos1!davidsen
"Stupidity, like virtue, is its own reward" -me

las@apr.UUCP (Larry Shurr) (01/19/88)

In article <609@silver.bacs.indiana.edu> creps@silver.UUCP (Steve Creps) writes:

>   I'm looking for a patch to increase the size of the keyboard buffer
>in MS-DOS. For me, typeahead of about 16 characters just doesn't get it.
>I'd rather have a patch to DOS than a TSR program, since a TSR will take
>up more memory, and I've experienced slow-downs in some keyboard-intensive
>activities (read games).

Steve,

I have an old program called BUF160 which expands this limit to 160 keys.
Don't know how it's implemented and don't care as I haven't experienced
any problems such as you describe.  If you don't get a better offer, send
me some mail (but be wary of the 'R' command, I believe that there are
numerous instances of non-reversable paths in posted articles).  If you
'R' and don't here from me, I'm not ignoring you, I probably didn't get
your mail, so try the paths in my .signature.  If any others also mail 
to me, I'll post it, it's not real large.

regards, Larry
-- 
"The only thing worse than being talked about is not being talked about."
- Oscar Wilde, James Whistler or George Bernard Shaw depending on who you ask
Name: Larry A. Shurr (cbosgd!osu-cis!apr!las or try {cbosgd,ihnp4}!cbcp1!las)
Disclaimer: The above is not necessarily the opinion of APR or any APR client.

madd@bu-cs.BU.EDU (Jim Frost) (01/20/88)

In article <385@apr.UUCP> las@apr.UUCP (Larry Shurr) writes:
>In article <609@silver.bacs.indiana.edu> creps@silver.UUCP (Steve Creps) writes:
>
>>   I'm looking for a patch to increase the size of the keyboard buffer
>>in MS-DOS.
>
>I have an old program called BUF160 which expands this limit to 160 keys.
>Don't know how it's implemented and don't care as I haven't experienced
>any problems such as you describe.
[...]
>If any others also mail 
>to me, I'll post it, it's not real large.

You might want to post anyway.  The program will not be very large (if
implemented in assembler I can see it taking only a few bytes) and
many people are archiving such things.  At any rate, I'm interested in
such a thing -- I've been thinking of writing one, but never got
around to it.

jim frost
madd@bu-it

"You can't fool all of the people all of the time, but you can make
some good money on those you do."

catone@dsl.cis.upenn.edu (Tony Catone) (02/04/88)

In article <18866@bu-cs.BU.EDU> madd@bu-it.bu.edu (Jim Frost) writes:
>>In article <609@silver.bacs.indiana.edu> creps@silver.UUCP (Steve Creps) writes:
>>
>>I have an old program called BUF160 which expands this limit to 160 keys.
>
>You might want to post anyway.  The program will not be very large . . .

The source for BUF160 is available in the Info-IBMPC library.  Since 
c.isi.edu went away, these files have been merged with the Simtel20
archives, and are available through either FTP or Bitnet.  I too use
the program, with no problems.

						- Tony
						  catone@dsl.cis.upenn.edu
						  catone@wharton.upenn.edu