Date: Thu, 30 Aug 2007 15:40:58 +0200 From: Pietro Cerutti <gahr@gahr.ch> To: djembe nazar <dn77881188@googlemail.com>, freebsd-hackers@freebsd.org Subject: Re: two-way terminal multiplexing Message-ID: <46D6C8EA.7000809@gahr.ch> In-Reply-To: <b7a18f790708300423o5cb56551lf5b409698c8d1e32@mail.gmail.com> References: <b7a18f790708300423o5cb56551lf5b409698c8d1e32@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig4FE0FA4EEF7A483B8C6A1CE6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable djembe nazar wrote: > I am trying to work out a way to do the following for a > "FreeBSD teaching environment": >=20 > 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). >=20 > 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. >=20 > 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 > below). >=20 > pupil sees: instructor sees: > +-----------------+ +-----------------+ > | INSTRUCTOR TERM | | PUPIL TERM | > +-----------------+ +-----------------+ > | PUPIL TERM | | INSTRUCTOR TERM | > +-----------------+ +-----------------+ >=20 > 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? A solution would be to use a combination of GNU screen(1) [sysutils/screen] and watch(8) [in the base system]. Screen would be used to multiplex a terminal in two upper and lower regions, with watch would be used to see the output of another terminal. I never used it on remote terminals, but you could solve the problem by letting both the teacher and the pupil connect to a common remote machine, say lecture-machine. Once connected (via SSH), both would use screen(1) to create two pseudo multiplexed terminals, e.g.: piter p3 :0:S.0 3:38PM - /bin/tcsh piter p4 :0:S.1 3:38PM - /bin/tcsh It would then suffice for both to open watch(8) and watch on one of each other's screen pseudo terminals. (not tested)... Hope this helps, >=20 > -- > D.N > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.o= rg" --=20 Pietro Cerutti PGP Public Key: http://gahr.ch/pgp --------------enig4FE0FA4EEF7A483B8C6A1CE6 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQFG1sjuwMJqmJVx944RCsENAJ43umK3sl+Tx8TM396ZCypL++6u6gCgjvt9 HTtYQHWgzwY1hFidesrf0+s= =znLu -----END PGP SIGNATURE----- --------------enig4FE0FA4EEF7A483B8C6A1CE6--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?46D6C8EA.7000809>