From owner-freebsd-libh Tue Oct 9 16:43:32 2001 Delivered-To: freebsd-libh@freebsd.org Received: from tomts9-srv.bellnexxia.net (tomts9.bellnexxia.net [209.226.175.53]) by hub.freebsd.org (Postfix) with ESMTP id 2476237B405; Tue, 9 Oct 2001 16:43:28 -0700 (PDT) Received: from khan.anarcat.dyndns.org ([65.94.128.156]) by tomts9-srv.bellnexxia.net (InterMail vM.4.01.03.16 201-229-121-116-20010115) with ESMTP id <20011009234320.NWSS29786.tomts9-srv.bellnexxia.net@khan.anarcat.dyndns.org>; Tue, 9 Oct 2001 19:43:20 -0400 Received: from shall.anarcat.dyndns.org (shall.anarcat.dyndns.org [192.168.0.1]) by khan.anarcat.dyndns.org (Postfix) with ESMTP id B0F8819F5; Tue, 9 Oct 2001 19:43:12 -0400 (EDT) Received: by shall.anarcat.dyndns.org (Postfix, from userid 1000) id 0369120B50; Tue, 9 Oct 2001 19:43:22 -0400 (EDT) Date: Tue, 9 Oct 2001 19:43:22 -0400 From: The Anarcat To: Jordan Hubbard Cc: freebsd-libh@freebsd.org Subject: Re: How to create a GUI console in tclh Message-ID: <20011009194322.E601@shall.anarcat.dyndns.org> Mail-Followup-To: The Anarcat , Jordan Hubbard , freebsd-libh@freebsd.org References: <20011009143206.A27943@shall.anarcat.dyndns.org> <20011009163733T.jkh@freebsd.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="qp4W5+cUSnZs0RIF" Content-Disposition: inline In-Reply-To: <20011009163733T.jkh@freebsd.org> User-Agent: Mutt/1.3.22.1i Sender: owner-freebsd-libh@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --qp4W5+cUSnZs0RIF Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue Oct 09, 2001 at 04:37:33PM -0700, Jordan Hubbard wrote: > This should be fairly easy to do - just take a look at what tclsh does > to implement its command parser. You basically just want to read in a > text string, call TCL's evaluator on it,=20 I'm absolutely non-worried about that. I already implemented some basic Tk tcl shell as a primary Tk exercise. :) > and insert the results back into the console window.=20 That is the whole problem. How can I redirect a stream to a window??? > I'm sure libh has some sort of scrolling > text widget already, right? I'm ashamed to say I haven't looked > lately, but this should be a very straight-forward "junior libh > hacker" sort of project.=20 Yah... Well, my only concern is with streams redirection... > You may also want to redirect stdout > somewhere so that things like "puts" behave correctly, given some > definition of "correct." I guess the only way would be to "read" the output line by line and then write it to the window... Thanks! A. --qp4W5+cUSnZs0RIF Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iEYEARECAAYFAjvDi5kACgkQttcWHAnWiGfYJgCfSIFbcKIEL/W9rVvqOe4y5JqJ l4YAniQdZXaAYNnP9to9LeMVgXcRphhM =Ir6q -----END PGP SIGNATURE----- --qp4W5+cUSnZs0RIF-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-libh" in the body of the message