xkibitz is a program that “allows multiple people to interact in an xterm”, and is one of the Expect example scripts.
Documentation