From owner-freebsd-ports Tue Dec 3 21:40:53 1996 Return-Path: owner-ports Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id VAA07469 for ports-outgoing; Tue, 3 Dec 1996 21:40:53 -0800 (PST) Received: from time.cdrom.com (root@time.cdrom.com [204.216.27.226]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id VAA07464 for ; Tue, 3 Dec 1996 21:40:50 -0800 (PST) Received: from time.cdrom.com (jkh@localhost [127.0.0.1]) by time.cdrom.com (8.8.3/8.6.9) with ESMTP id VAA08956; Tue, 3 Dec 1996 21:40:20 -0800 (PST) To: Bill Fenner cc: Michael Smith , ports@freebsd.org Subject: Re: Ports INDEX browser update In-reply-to: Your message of "Tue, 03 Dec 1996 20:41:14 PST." <96Dec3.204125pst.177711@crevenia.parc.xerox.com> Date: Tue, 03 Dec 1996 21:40:20 -0800 Message-ID: <8951.849678020@time.cdrom.com> From: "Jordan K. Hubbard" Sender: owner-ports@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > For non-interactive ports, it'd be much nicer to just create a text > widget into which you put the output of the command you spawned > asyncrhonously. (This is actually really easy, code upon request). > However, I've never tried to do an interactive shell this way. It also occurs to me that if you're really masoch^H^H^H^H^Hinterested in odd solutions, you can always build and use the two widgets from "emu" in our ports collection. It was built specifically for this purpose, with "xterm" equivalent functionality derived from several cooperating widgets. I don't know how hard it would be to splice into Tk, but it was definitely engineered a lot more with this kind of application in mind, and all of the widgets comprising emu are stand-alone so you should be able to encapsulate those you need fairly easily. In fact, it would not be too hard to use just the termCanvas widget to talk to the existing Tk text widget, though you'd have to write some glue code. If you're genuinely interested, I'd be willing to help. Talking to another "canvas" was always one of the little projects which I never got time to do. Jordan