Hi - you ask about calling "libj.so" but I'm working under Windows.

As far as adding the prompt myself, I generally rely on emacs to simply
show me what the interpreter outputs and provide the interpreter with input
with minimal interference.  I do have a simple macro I run to turn off
emacs's attempts to "interpret" certain character sequences on recall;
specifically, emacs recognizes "!:" as something, so when I recall a line
like
   6!:2 '$mat +/ . * %.mat'
emacs shows me
   6 '$mat +/ . * %.mat'
unless I've run my macro to turn off this "feature".

There are a lot of options to allow emacs to recognize a prompt and to set
up code to be called for a prompt.  However, based on what Bill says, it
seems that the J interpreter is not sending anything as a prompt because it
thinks I'm running in a non-interactive mode.  Here's what the emacs docs
say about prompts:
https://www.gnu.org/software/emacs/manual/html_node/emacs/Shell-Prompts.html
 .

Interestingly, I have my own command-line option "-interactive" I provide
to J so I can make this distinction within my own code, so I assume
non-interactivity unless otherwise specified.  If J itself had an explicit
command-line option to do this rather than relying on some deeply-buried
internal logic, this current issue would not be a problem for me.

Any ideas on how to deal with this would be appreciated.

Thanks,

Devon


On Fri, Jan 10, 2020 at 11:37 AM bill lam <[email protected]> wrote:

> Devon,
>
> There is a change in j801 jconsole in that it no longer output
> three space prompt if it thinks the session is non-interactive.
> jconsole use isatty of stdin to check.
>
> I am not familiar with emacs, can it call libj.so directly so
> that you can add the prompt by yourself?
>
> Fri, 10 Jan 2020, Devon McCormick написал(а):
> > Hi - I just installed J 9.01 and am running the console version under
> emacs
> > as I've done for years now but I am not getting my  three spaces prompt
> any
> > more.  The system appears to work but the cursor remains on the left
> margin
> > so I don't have the visual clue that J is ready for input.
> >
> > Is there any known change that could be causing this in this version?
> >
> > Thanks,
> >
> > Devon
> >
> > --
> >
> > Devon McCormick, CFA
> >
> > Quantitative Consultant
> > ----------------------------------------------------------------------
> > For information about J forums see http://www.jsoftware.com/forums.htm
>
> --
> regards,
> ====================================================
> GPG key 1024D/4434BAB3 2008-08-24
> gpg --keyserver subkeys.pgp.net --armor --export 4434BAB3
> ----------------------------------------------------------------------
> 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

Reply via email to