Terminal Emulation

Hi , I am working on SCO Unix who needs to know some basics concepts about how to write a program that will capture the input , output of one terminal to another ie whatever is being typed as input or echoed as output to terminal say tty02 shall be automatically be falshed to another terminal say tty03. Kindly take into account that I want this module to be written only at one session/terminal and that in this case will be session controlled with terminal tty03. I intend not write any other module at or for tty02 terminal/session.
Thanks in advance.

Look at this site.. I think they have what you want..

Progarm called PEEK