You might want to do a quick "cvs update" because I just updated
some of the "cruft" that had been sitting in the Shell.java class
for some time. Oh wait, I take that back. I checked the "user"
visible CVS at scriptics and last nights changes are not in there
yet (you will have to wait until tommorow).

I do not really think it is a good idea to reimplement the
IO stuff from Jacl in Tcl Blend. Much of the Jacl IO
stuff in the Shell class is just a bunch of ugly
hacks that are needed because the Java IO libs
do not support non blocking IO. If you really want to
make the Shell class work in both Jacl and Tcl Blend, it
might be better to abstract out the bits that do the IO
from the bits that send the event to the interp. The bits
that send to values to the interp is what you want to
show off anyway.

Mo Dejong
Red Hat Inc.

On Mon, 3 Apr 2000, Jiang Wu wrote:

> I am trying to adapt the Jacl Shell to work in TclBlend.  The changes
> involve moving the command line processing logic from the ConsoleThread's
> run() method into the ConsoleEvent class's processEvent() method so that
> only the interpreter thread is calling any Interp class's methods.    
> 
> The Jacl Shell, tcl.lang.Shell, also uses the Channel, StdChannel, and TclIO
> classes in Jacl to print characters to the screen.  TclBlend does not have
> those two classes.  Now, I see three options to make this work:
> 
> 1. add Channel, StdChannel, TclIO to TclBlend
> 2. use the same Shell for both Jacl and TclBlend, make the Shell use
> java.lang.System.out and java.lang.System.err instead of tcl.lang.StdChannel
> 3. TclBlend use a separate Shell from Jacl, TclBlend Shell uses System.out,
> Jacl Shell uses StdChannel.
> 
> I don't like option 1 because those Jacl specific classes don't do anything
> other than supporting the Shell in TclBlend.  What do people think?  Any
> preferences?
> 
> -- Jiang Wu
>    [EMAIL PROTECTED]
> 
> 
> ----------------------------------------------------------------
> The TclJava mailing list is sponsored by Scriptics Corporation.
> To subscribe:    send mail to [EMAIL PROTECTED]  
>                  with the word SUBSCRIBE as the subject.
> To unsubscribe:  send mail to [EMAIL PROTECTED] 
>                  with the word UNSUBSCRIBE as the subject.
> To send to the list, send email to '[EMAIL PROTECTED]'. 
> An archive is available at http://www.mail-archive.com/tcljava@scriptics.com
> 
> 

----------------------------------------------------------------
The TclJava mailing list is sponsored by Scriptics Corporation.
To subscribe:    send mail to [EMAIL PROTECTED]  
                 with the word SUBSCRIBE as the subject.
To unsubscribe:  send mail to [EMAIL PROTECTED] 
                 with the word UNSUBSCRIBE as the subject.
To send to the list, send email to '[EMAIL PROTECTED]'. 
An archive is available at http://www.mail-archive.com/tcljava@scriptics.com

Reply via email to