I do not remember how it worked in J6, but I'm fine with the current J8.
The origin of the problem is a user trying to interrupt the REPL, so it is
his/her responsibility to fix.  Perhaps you should ask students to create a
form and print output there.
On Nov 15, 2014 6:52 AM, "Henry Rich" <[email protected]> wrote:

> No, I just want an easy display of typeout.  The interruption of keyboard
> entry you describe was in J6 and I was OK with it.
>
> Right now, I'm trying to get beginning programmers to see what happens
> when events occur.  They have written websocket handlers, and I want them
> to be able to put typeout in them to see what happens.  The problem is that
> when they type out, it takes away the prompt, and the line containing the
> prompt.
>
> Working like J6 did would be fine here.
>
> Henry Rich
>
> On 11/14/2014 3:39 PM, Raul Miller wrote:
>
>> As a general rule, typing interactively when event handlers are going
>> off is problematic.
>>
>> Imagine, for example, that you were typing something arbitrary, like:
>>
>> A quick brown fox jumps over the lazy dog.
>>
>> Now, imagine that an event handler goes off ever place a . is inserted:
>>
>> A q.uick .bro.wn. f.ox ju.mps o.ve.r t.he. lazy. dog.
>>
>> It's going to be a mess no matter what you do,
>>
>> But this can be worked around by using a different approach.
>>
>> For example, on unix, you can use  tail -f filename  to display
>> everything that gets appended to a file. With that, and a separate
>> window, you can use fappend in J to have event handler messages show
>> up without messing up your interactive display. (On windows, I guess
>> you'd have to install cygwin to get the tail command)
>>
>> Would something like that work for you?
>>
>> Thanks,
>>
>>  ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to