require'misc'
prompt
3 : 0
'' prompt y
:
if. IFCONSOLE do.
y 1!:2 [ 4
1!:1 ] 1
else.
smprompt_jijs_ y;x
inp=. 1!:1 ] 1
len=. #y
(len * y -: len {. inp) }. inp
end.
)
2006/4/21, Miller, Raul D <[EMAIL PROTECTED]>:
>
> I want to build a J form which is essentially a session manager.
>
> In other words, the user will type in a line of text. The
> line will be appended to the session. An application function
> will process the line. The result will be appended to the
> session.
>
> Sessions can be large (hundreds of megabytes, worst case),
> but usually only the tail end of the session is of interest.
>
> Sessions will be logged to a file.
>
> Advanced versions may color the text (input a different
> color from ouput, for example).
>
> How to implement?
>
> One approach has a richeditm which represents the entire
> session. This incurs tremendous cost updating the session
> when the session gets large. I'm rejecting this as unworkable.
>
> One approach has a richeditm which represents the visible
> part of the session. A scroll bar would allow navigation
> within the session. Arrow keys could not be used for
> scrolling (no J event handler for them). Mouse wheel could
> not be used for scrolling (no J event handler for it).
>
> Any better approaches?
>
> Thanks,
>
> --
> Raul
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
--
Björn Helgason, Verkfræðingur
Fugl&Fiskur ehf, Þerneyjarsund 23,
Skype: gosiminn, gsm: +3546985532
801 Grímsnes ,t-póst: [EMAIL PROTECTED]
Landslags og skrúðgarðagerð, gröfuþjónusta
http://groups.google.com/group/J-Programming
Tæknikunnátta höndlar hið flókna, sköpunargáfa er meistari einfaldleikans
góður kennari getur stigið á tær án þess að glansinn fari af skónum
/|_ .-----------------------------------.
,' .\ / | Með léttri lund verður |
,--' _,' | Dagurinn í dag |
/ / | Enn betri en gærdagurinn |
( -. | `-----------------------------------'
| ) |
(`-. '--.)
`. )----'
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm