Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Oct 2001 12:15:30 -0400
From:      The Anarcat <anarcat@anarcat.dyndns.org>
To:        Alexander Langer <alex@big.endian.de>
Cc:        Jordan Hubbard <jkh@FreeBSD.ORG>, freebsd-libh@FreeBSD.ORG
Subject:   Re: How to create a GUI console in tclh
Message-ID:  <20011010121529.A531@shall.anarcat.dyndns.org>
In-Reply-To: <20011010113329.D1967@zerogravity.kawo2.rwth-aachen.de>
References:  <20011009143206.A27943@shall.anarcat.dyndns.org> <20011009163733T.jkh@freebsd.org> <20011010113329.D1967@zerogravity.kawo2.rwth-aachen.de>

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

--EVF5PPMfhYS0aIcm
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Wed Oct 10, 2001 at 11:33:29AM +0200, Alexander Langer wrote:
> Thus spake Jordan Hubbard (jkh@FreeBSD.ORG):
>=20
> > 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.
>=20
> Can this be done with TCL's "eval"?

Yes. Did it. :)

> Hmm, otoh, I don't know exactly what you want to do :)

A console that looks the same as if you just type "tclh" but within a
libh widget.

> > I'm sure libh has some sort of scrolling
> > text widget already, right?
>=20
> Yeah, indeed.  We have a multiple-line-textwidget.
> Maybe you cannot scroll it from within TCL yet, but this should
> be easy to add.  I can do that if there is need.

Actually, what I would need would be a handy "append" proc. Because
right now I must use something like:

$textedit text [format "%s%s\n" [$textedit text] $newtext]

instead of

$textedit append $newtext

Oh, and I would need a hook from the lineEdit widget that is called
whenever a "enter" is typed, if possible. :)

A.

--EVF5PPMfhYS0aIcm
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

iEYEARECAAYFAjvEdCAACgkQttcWHAnWiGcF4gCfS7kf1W9hSYFrviJZYKahn/z2
+EEAn1ZI5HitzULMPG5j68oQms9C8pMK
=xucB
-----END PGP SIGNATURE-----

--EVF5PPMfhYS0aIcm--

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?20011010121529.A531>