Date: Tue, 9 Oct 2001 19:43:22 -0400 From: The Anarcat <anarcat@anarcat.dyndns.org> To: Jordan Hubbard <jkh@freebsd.org> Cc: freebsd-libh@freebsd.org Subject: Re: How to create a GUI console in tclh Message-ID: <20011009194322.E601@shall.anarcat.dyndns.org> In-Reply-To: <20011009163733T.jkh@freebsd.org> References: <20011009143206.A27943@shall.anarcat.dyndns.org> <20011009163733T.jkh@freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011009194322.E601>