From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 30 12:13:08 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 08E6D16A417 for ; Thu, 30 Aug 2007 12:13:08 +0000 (UTC) (envelope-from dn77881188@googlemail.com) Received: from rv-out-0910.google.com (rv-out-0910.google.com [209.85.198.190]) by mx1.freebsd.org (Postfix) with ESMTP id CC69C13C48D for ; Thu, 30 Aug 2007 12:13:07 +0000 (UTC) (envelope-from dn77881188@googlemail.com) Received: by rv-out-0910.google.com with SMTP id l15so139584rvb for ; Thu, 30 Aug 2007 05:12:50 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=googlemail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=LfIszzQIDiKOUiDvA7VXyKPo6Put45QBgglxpM+yoOiksm4CQIANxaNHbwqkWCjjmlQBaBx8nTpS/RF77ZqyixR+CqbacQlXiqYGFg6QabdBu/mI2esOvmgiQxjO3fBA97Lq01gqxHhdLoSU1vV4zvBAB1pkguaEg6uZdC78Yjo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=WXeJTagGAA5/0Oe+Bbg9BN6K2YylOpwhtrdLgzFoUAJdS7o5ztZdLFIcUxkk6wYqsX8lyA6LD5j7YJ37tTtVp9sJZAwWDIuZSuhDt56jNcGd41wUZ2UsYbqw0blCyL6cJGgKUpkzmLom6OlcD3+vjS0OfxTJ50AvRoaa3235zwk= Received: by 10.114.103.1 with SMTP id a1mr5685wac.1188473017594; Thu, 30 Aug 2007 04:23:37 -0700 (PDT) Received: by 10.114.159.11 with HTTP; Thu, 30 Aug 2007 04:23:37 -0700 (PDT) Message-ID: Date: Thu, 30 Aug 2007 12:23:37 +0100 From: "djembe nazar" To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: two-way terminal multiplexing X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Aug 2007 12:13:08 -0000 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 below). pupil sees: instructor sees: +-----------------+ +-----------------+ | INSTRUCTOR TERM | | PUPIL TERM | +-----------------+ +-----------------+ | PUPIL TERM | | INSTRUCTOR TERM | +-----------------+ +-----------------+ 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? -- D.N