Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 09 Oct 2001 16:37:33 -0700
From:      Jordan Hubbard <jkh@freebsd.org>
To:        anarcat@anarcat.dyndns.org
Cc:        freebsd-libh@freebsd.org
Subject:   Re: How to create a GUI console in tclh
Message-ID:  <20011009163733T.jkh@freebsd.org>
In-Reply-To: <20011009143206.A27943@shall.anarcat.dyndns.org>
References:  <20011009143206.A27943@shall.anarcat.dyndns.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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, and insert the results back
into the console 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.  You may also want to redirect stdout
somewhere so that things like "puts" behave correctly, given some
definition of "correct."

- Jordan


From: The Anarcat <anarcat@anarcat.dyndns.org>
Subject: How to create a GUI console in tclh
Date: Tue, 9 Oct 2001 14:32:06 -0400

> Hi all.
> =

> Would it be possible to bring up a console to interface libh (=E0 la t=
clh)
> over a running set of already running tclh?
> =

> What I would like to do is to have some kind of toggle/menu/keybinding=

> to bring up a graphical console window where it would be possible to
> give direct tclh commands or examine the current status of the
> program.
> =

> Very useful for debugging/developping, this could also be used as some=

> kind of "emergency shell" equivalent! :) And anyways, we *should* have=

> some kind of window to hold stdout and stderr from secondary commands.=
..
> =

> I guess the problem I have is more with the reimplementation of a tcl
> console within Hui widgets.
> =

> Any ideas?
> =

> a.

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?20011009163733T.jkh>