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
