[comp.lang.pascal] Intercepting keystrokes

DAVID%UCONNVM.BITNET@cunyvm.cuny.edu (06/23/89)

I have a peculiar problem which needs expert help.
I would like to intercept each keystroke, before it gets into a program,
and do something with it.
For instance I would like to make 'a'->'b', 'b'->'c', etc., etc.,
before the characters entered become available to whatever program
happens to be running.
It is my understanding that TSR's do this, i.e., check each keystroke
and pass them through if they are not the "hot-key".
My question is, where and how do TSR's pass them through(?) to what?
If I wrote a TSR and intercepted and inspected each character, and did
something to it, and then wanted to insert it into where-ever the
original character was going, what would I do?
Thanks in advance for any help.
By the way, I expect to program this is Turbo Pascal (5.5).
Thanks again.
Carl David
i
e-mail:DAVID@UCONNVM.bitnet