Re: [Jprogramming] A normal exit from a deeply embedded function to a terminal prompt, how?

2018-01-02 Thread Erling Hellenäs
Hi all! I think you usually design a way to end the recursion. The deepest function returns to the one above and so on. In the case of tail recursion there is simply no stack and you would immediately return. Using exception handling to do this does not seem proper. You'd probably want to use

Re: [Jprogramming] viewmat image dimensions

2018-01-02 Thread Dabrowski, Andrew John
Thank you, that worked. On 12/31/2017 01:32 PM, Cliff Reiter wrote: This may not be a good choice as I don't understand all the consequences and hesitate to change values in addons authored by others, but you might try: MINWH_jviewmat_=:1000 1000 or a variant suited to your device and data. On

[Jprogramming] overwite?

2018-01-02 Thread Dabrowski, Andrew John
When using (1!:2) & 2 to write the screen, is there a way to overwrite the next message on the previous one, rather than starting a new line or appending? -- For information about J forums see http://www.jsoftware.com/forums.htm

Re: [Jprogramming] overwite?

2018-01-02 Thread Raul Miller
I imagine so, but the details for that kind of stunt will vary depending on what kind of screen you are writing to. Are you trying to use jconsole, jqt or jhs? Thanks, -- Raul On Tue, Jan 2, 2018 at 1:15 PM, Dabrowski, Andrew John wrote: > When using (1!:2) & 2 to write the screen, is there

Re: [Jprogramming] overwite?

2018-01-02 Thread Dabrowski, Andrew John
Actually I'm using emacs with j-mode. If you could just point me in the right direction, maybe give some keywords to google, that would be helpful. On 01/02/2018 01:21 PM, Raul Miller wrote: I imagine so, but the details for that kind of stunt will vary depending on what kind of screen you are

Re: [Jprogramming] overwite?

2018-01-02 Thread Dabrowski, Andrew John
Does J have a backspace character? Perhaps I could use that with (1!:3) & 2. On 01/02/2018 01:31 PM, Dabrowski, Andrew John wrote: Actually I'm using emacs with j-mode. If you could just point me in the right direction, maybe give some keywords to google, that would be helpful. On 01/02/2018

Re: [Jprogramming] overwite?

2018-01-02 Thread Raul Miller
You'll probably want to use an emacs filter function for this: https://www.gnu.org/software/emacs/manual/html_node/elisp/Filter-Functions.html Good luck, -- Raul On Tue, Jan 2, 2018 at 1:31 PM, Dabrowski, Andrew John wrote: > Actually I'm using emacs with j-mode. If you could just point me

Re: [Jprogramming] overwite?

2018-01-02 Thread Raul Miller
The backspace character is available in J as 8{a. or u:8 But, last time I checked, the default behavior of emacs here would not be what you are hoping for (which is why I suggest you look into emacs filter functions). Good luck, -- Raul On Tue, Jan 2, 2018 at 1:45 PM, Dabrowski, Andrew John

Re: [Jprogramming] overwite?

2018-01-02 Thread Dabrowski, Andrew John
It seems to work fine in the comint buffer. 'a' , u:8 'ab' , u:8 a 'abc' , u:8 ab On 01/02/2018 01:50 PM, Raul Miller wrote: The backspace character is available in J as 8{a. or u:8 But, last time I checked, the default behavior of emacs here would not be what you are hoping for (whi

Re: [Jprogramming] overwite?

2018-01-02 Thread Raul Miller
Nice. Either I remembered wrong, or it's just been too long. Thanks, -- Raul On Tue, Jan 2, 2018 at 2:36 PM, Dabrowski, Andrew John wrote: > It seems to work fine in the comint buffer. > >'a' , u:8 > >'ab' , u:8 > a >'abc' , u:8 > ab > > > On 01/02/2018 01:50 PM, Raul Miller wrot

Re: [Jprogramming] overwite?

2018-01-02 Thread Dabrowski, Andrew John
Thanks for pointing me to the unicode operator, that was what I was looking for. Unfortunately I now find that (1!:3)&2 doesn't really append. (1!:3)&2 ^:3 'a' a a a a This isn't an emacs problem either, I get the same behavior in jqt and ijconsole. Is there no print function that doesn't i

Re: [Jprogramming] overwite?

2018-01-02 Thread Raul Miller
(Won't backspace bring you back to previous lines?) 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). Thanks, -- Raul On Tue, Jan 2, 2018 at

Re: [Jprogramming] overwite?

2018-01-02 Thread Dabrowski, Andrew John
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 jc

Re: [Jprogramming] overwite?

2018-01-02 Thread Raul Miller
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 wrote: > On 01/02/2018 03:52 PM, Raul Miller wrote: > > (Won't backspace bring you back to previous lines?) > > Exasperatingly, no. Although n