two-way terminal multiplexing

djembe nazar dn77881188 at
Thu Aug 30 05:13:08 PDT 2007

I am trying to work out a way to do the following for a
"FreeBSD teaching environment":

The intention is to have two terminals, one above the other.
The bottom terminal shows one's own commands and output like
an ordinary xterm whilst the top terminal shows the commands
and output of a peer (such as an instructor).

The pupil is not allowed to enter commands into the
instructor's terminal, it simply shows what the instructor
typed and the resulting output of the commands. The same
is true of the reverse. The overall concept is to allow an
instructor to tutor a pupil over an appropriate medium such
as instant messaging whilst allowing the pupil to learn by
example with a very hands-on approach.

In the case of a standard 1-to-1 teaching environment, the
instructor would see his/her own terminal on the bottom and
the terminal of the pupil on the top. The pupil would see the
reverse (instructor's terminal above, his/her own terminal

     pupil sees:            instructor sees:
  +-----------------+     +-----------------+
  +-----------------+     +-----------------+
  +-----------------+     +-----------------+

I do not understand how to achieve this. Is this even possible
given standard unix security with regards to hijacking the
tty devices of other users on the system?


More information about the freebsd-hackers mailing list