You're very welcome, Roger. Yeah… only discovered it myself recently – although J602 had comparable facilities.
Window Driver, aka JWD or wd, repays an evening's study. The first page to consult is here: http://www.jsoftware.com/jwiki/Guides/Window%20Driver/Command%20Reference …all the rest can be accessed from the Other Documents section. If all you need is a utf-8 text window or two, why muck about with your own Qt windows when you can make the IDE sit up and beg? JWD really takes the pain out of Qt. It's so intuitive it's ideal for J beginners to pick up and be creative with. For a bit of 1970s nostalgia, it can even do character-based animations. On Sat, Jan 6, 2018 at 10:08 AM, roger stokes <[email protected]> wrote: > Ian, > Many thanks for that very valuable information > > Regards > > On Sat, Jan 6, 2018 at 6:31 AM, Ian Clark <[email protected]> wrote: > > > In jqt you can take control of the term window, fetch its current > contents, > > cut them back and rewrite the term window. > > Likewise other windows in the jqt IDE. > > > > This link is a reference to help you do that: > > http://code.jsoftware.com/wiki/Guides/Window_Driver/Session_Manager > > > > As Nick S says, there is also an addon which demonstrates the technique, > > viz. > > > > load '~addons/general/misc/prompt.ijs' > > > > '2001 5 23' prompt 'start date: ' > > > > start date: 2001 5 12 ---overwriting 23 with 12 > > > > 2001 5 12 > > > > > > And here's a rough'n'ready program of mine to cut back lines or bytes: > > > > > > reterm=: 3 : 0 > > > > NB. rewrite contents of term window > > > > NB. cutting back by y bytes (y<0) > > > > NB. or by y lines (y>0) > > > > z=. >{:{.wd'sm get term' > > > > if. y<0 do. z=. y }. z > > > > else. > > > > for_i. i.y do. > > > > z=. z {.~ z i: LF > > > > end. > > > > end. > > > > wd'sm set term text *',z > > > > ) > > > > > > > > > > > > On Thu, Jan 4, 2018 at 12:35 AM, Devon McCormick <[email protected]> > > wrote: > > > > > Hi - I looked into (what I think is) this problem several years ago. > > > Eventually I concluded it was impossible because of the way the J > session > > > manager adds lines to the end of the session but I do not recall the > > > details. > > > > > > You may be better off using GUI windows to handle this. > > > > > > On Wed, Jan 3, 2018 at 12:47 PM, Nick S <[email protected]> wrote: > > > > > > > With jqt, I might try to dissect the prompt program to see exactly > what > > > it > > > > is doing and if it is applicable. With emacs, well, the code for the > > > mode > > > > is probably written in lisp, so you can hack on that just like > anything > > > > else to get it to do what you want. If not, there is source > somewhere. > > > > > > > > On Tue, Jan 2, 2018 at 5:02 PM, Raul Miller <[email protected]> > > > wrote: > > > > > > > > > Why do you say that you aren't using stdout? > > > > > > > > > > What happens when you use 1!:2&4? > > > > > > > > > > Thanks, > > > > > > > > > > -- > > > > > Raul > > > > > > > > > > On Tue, Jan 2, 2018 at 4:05 PM, Dabrowski, Andrew John > > > > > <[email protected]> wrote: > > > > > > On 01/02/2018 03:52 PM, Raul Miller wrote: > > > > > > > > > > > > (Won't backspace bring you back to previous lines?) > > > > > > > > > > > > Exasperatingly, no. Although normally I can backspace my way all > > > over > > > > a > > > > > comint buffer, with (1!:3)&2 that doesn't work > > > > > > > > > > > > > > > > > > > > > > > > Anyways, 1!:2&4 should give you the incomplete lines you are > > looking > > > > > > for in jconsole. But note that they have different behavior in > jqt > > > > > > (you won't be seeing them if you don't make special > arrangements). > > > > > > > > > > > > Right, but I'm not using stout. Is this the intended behavior of > > > > > (1!:3)&2 or do you think it might be a bug? > > > > > > > > > > > > > > > > > > > > > > > > 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 > > > > > > > > > > > > > > > > > > > > > -- > > > > Of course I can ride in the carpool lane, officer. Jesus is my > > constant > > > > companion. > > > > ------------------------------------------------------------ > ---------- > > > > For information about J forums see http://www.jsoftware.com/ > forums.htm > > > > > > > > > > > > > > > > -- > > > > > > Devon McCormick, CFA > > > > > > Quantitative Consultant > > > ---------------------------------------------------------------------- > > > For information about J forums see http://www.jsoftware.com/forums.htm > > > > > ---------------------------------------------------------------------- > > For information about J forums see http://www.jsoftware.com/forums.htm > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm > ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
