zeeff@b-tech.UUCP (Jon Zeeff) (04/12/88)
This is a very simple program that can be added to your '386 kernel to make the keyboard more responsive. #! /bin/sh # This is a shell archive. Remove anything before this line, then unpack # it by saving it into a file and typing "sh file". To overwrite existing # files, type "sh file -c". You can also feed this as standard input via # unshar, or by typing "sh <file", e.g.. If this archive is complete, you # will see the following message at the end: # "End of shell archive." # Contents: kf.c config # Wrapped by root@b-tech on Mon Apr 11 20:02:25 1988 PATH=/bin:/usr/bin:/usr/ucb ; export PATH if test -f kf.c -a "${1}" != "-c" ; then echo shar: Will not over-write existing file \"kf.c\" else echo shar: Extracting \"kf.c\" \(861 characters\) sed "s/^X//" >kf.c <<'END_OF_kf.c' X X/* X X I/O driver for Sys V.3 (microport) V1.0 X Written by Jon Zeeff umix!b-tech!zeeff. X Copyright 1988 Jon Zeeff X X You may use this in any manner provided that you leave this notice X intact and don't hold me responsible for any problems with it. X X This "driver" speeds up the repeat rate on the keyboard. Once you X get used to it, anything else seems unbearably slow. X X 1) cc -c kf.c X 2) mkdir KERNELDIR/modules/kf X 3) cp kf.o KERNELDIR/modules/kf X 4) cp config KERNELDIR/modules/kf X 5) edit KERNELDIR/system/system.? and add kf X 6) /etc/mkunix X X X*/ X Xkfinit() X{ Xint i; X X /* Fix the keyboard repeat rate */ X X outb(0x60,0xf3); X for (i = 9999; i; --i); /* Actually, I don't know that this is necessary */ X outb(0x60,0x20); X for (i = 9999; i; --i); X inb(0x60); X X} X Xkfread() {} Xkfopen() {} Xkfwrite() {} Xkfioctl() {} Xkfclose() {} X END_OF_kf.c if test 861 -ne `wc -c <kf.c`; then echo shar: \"kf.c\" unpacked with wrong size! fi # end of overwriting check fi if test -f config -a "${1}" != "-c" ; then echo shar: Will not over-write existing file \"config\" else echo shar: Extracting \"config\" \(97 characters\) sed "s/^X//" >config <<'END_OF_config' X* 1 "kf/config" X Xcharacter(49) X Xprefix = kf X Xfunctions = init, open, read, write, ioctl, close END_OF_config if test 97 -ne `wc -c <config`; then echo shar: \"config\" unpacked with wrong size! fi # end of overwriting check fi echo shar: End of shell archive. exit 0 -- Jon Zeeff Branch Technology, uunet!umix!b-tech!zeeff zeeff%b-tech.uucp@umix.cc.umich.edu