Jan Wielemaker

Results 318 comments of Jan Wielemaker

Hmmm. As a hack, possibly (but then we also have checking the prompt). In general I'd guess a dumb terminal is still ok to do basic paging, while it is...

However, ``` ?- prompt(X,X). %@ X = '|: '. ``` I think it makes the point clear that using the prompt is not a good way to find ediprolog (especially...

Thanks. That explains something. Now changed the test to ``` running_under_emacs :- current_prolog_flag(toplevel_prompt, P), sub_atom(P, _, _, _, 'ediprolog'), !. ``` Note that `'$set_promp'/1` is deprecated and new code should...

Yes, the current way to handle text is using `PL_get_*chars()` and `PL_unify_*chars()`. The old stuff was from the days atoms where 0-terminated ASCII C strings and the `*n*` variations when...

> Does this mean that the various `PL_put_*()` functions are obsolete/deprecated? The ones dealing with text to create atoms/strings/code lists should be considered deprecated. Not sure we should actually deprecate...

According to Trail() (pl-inline.h), local variables are always trailed. It would be a bit digging to find the rationale for that ...

They are clearly trailed as it tests for `> lBase`. Whether that is (still) necessary I don't know. It is not my priority to figure this out. Possibly not because...

Just use the PL_unify* functions if there is no suitable put version and make sure to use the text exchange functions with the flags and accepting `term_t`. That should deal...

Doesn't really ring a bell. I'm using Ubuntu 20.04 as core dev machine. It is also pretty weird to me why it complains about undefined symbols against libswipl.so.8.3.22 while linking...

I have no clue. If all is right, libswipl.so is linked to libtinfo or some other implementation of ncurses which provides these functions. Why this shows up when linking swipl-win...