I do not see why you are doing this.  If you want to call
'saySpadMsg' appropriate io hook should be enough.  For
skipping line numbers setting '$IOindex' to NIL should
be enough.

Well, not so easy. ;-) I could probably do this with the ioHook, but
the Jupyter interface also has numbers for input/output. I use $IOindex to
syncronize FriCAS step numbers with Jupyter numbers. Setting $IOindex to nil
is thus counterproductive.

You mean you read $IOindex?

Yes I do.

https://github.com/fricas/jfricas/blob/master/jfricas/webspad.lisp#L63

===================
(defun ws-fmt (marker)
  (|sayMSG| (format nil "--FORMAT:~A:~D" marker boot::|$IOindex|)))

(setf |$ioHook|
      (lambda (x &optional args)
        (cond
;         ((eq x '|startAlgebraOutput|) (ws-fmt "BEG:Algebra"))
;         ((eq x '|endOfAlgebraOutput|) (ws-fmt "END:Algebra"))
         ((eq x '|startPatternMsg|)    (ws-fmt "BEG:ERROR"))
         ((eq x '|endPatternMsg|)      (ws-fmt "END:ERROR"))
....
===================

As long as nobody changes it inside a jfricas session, everything works fine. Do you see a problem with that?
Any other option to read FriCAS' step number?

Ralf

--
You received this message because you are subscribed to the Google Groups "FriCAS - 
computer algebra system" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/fricas-devel/e85d1b81-57a5-fbdc-f853-baf48873839f%40hemmecke.org.

Reply via email to