From owner-freebsd-libh Wed Oct 10 9:15:29 2001 Delivered-To: freebsd-libh@freebsd.org Received: from tomts14-srv.bellnexxia.net (tomts14.bellnexxia.net [209.226.175.35]) by hub.freebsd.org (Postfix) with ESMTP id 630D337B40A; Wed, 10 Oct 2001 09:15:25 -0700 (PDT) Received: from khan.anarcat.dyndns.org ([65.94.128.156]) by tomts14-srv.bellnexxia.net (InterMail vM.4.01.03.16 201-229-121-116-20010115) with ESMTP id <20011010161524.SQAA27994.tomts14-srv.bellnexxia.net@khan.anarcat.dyndns.org>; Wed, 10 Oct 2001 12:15:24 -0400 Received: from shall.anarcat.dyndns.org (shall.anarcat.dyndns.org [192.168.0.1]) by khan.anarcat.dyndns.org (Postfix) with ESMTP id 292731AC8; Wed, 10 Oct 2001 12:15:19 -0400 (EDT) Received: by shall.anarcat.dyndns.org (Postfix, from userid 1000) id 9EA4520B50; Wed, 10 Oct 2001 12:15:30 -0400 (EDT) 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> Mail-Followup-To: The Anarcat <anarcat@anarcat.dyndns.org>, Alexander Langer <alex@big.endian.de>, Jordan Hubbard <jkh@FreeBSD.ORG>, freebsd-libh@FreeBSD.ORG References: <20011009143206.A27943@shall.anarcat.dyndns.org> <20011009163733T.jkh@freebsd.org> <20011010113329.D1967@zerogravity.kawo2.rwth-aachen.de> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="EVF5PPMfhYS0aIcm" Content-Disposition: inline In-Reply-To: <20011010113329.D1967@zerogravity.kawo2.rwth-aachen.de> User-Agent: Mutt/1.3.22.1i Sender: owner-freebsd-libh@FreeBSD.ORG Precedence: bulk List-ID: <freebsd-libh.FreeBSD.ORG> List-Archive: <http://docs.freebsd.org/mail/> (Web Archive) List-Help: <mailto:majordomo@FreeBSD.ORG?subject=help> (List Instructions) List-Subscribe: <mailto:majordomo@FreeBSD.ORG?subject=subscribe%20freebsd-libh> List-Unsubscribe: <mailto:majordomo@FreeBSD.ORG?subject=unsubscribe%20freebsd-libh> X-Loop: FreeBSD.ORG --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