Skip site navigation (1)Skip section navigation (2)
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>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
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, 

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. 

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. 

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.

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (FreeBSD)
Comment: For info see http://www.gnupg.org

iEYEARECAAYFAjvDi5kACgkQttcWHAnWiGfYJgCfSIFbcKIEL/W9rVvqOe4y5JqJ
l4YAniQdZXaAYNnP9to9LeMVgXcRphhM
=Ir6q
-----END PGP SIGNATURE-----
help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011009194322.E601>