Should the help/1 display the pldoc-help to command prompt???!

11 views
Skip to first unread message

Pasi Xyy

unread,
Oct 11, 2017, 12:04:57 PM10/11/17
to swi-p...@googlegroups.com
Hello forum!

I would like to have the help/1 to print pldoc-documentation about a predicate to a command prompt. Is this possible now? 

I am thinking from a end-users perspective who is using a command line application, he would get a few lines of help to a command prompt

Thanks.

Samer Abdallah

unread,
Oct 11, 2017, 6:50:46 PM10/11/17
to Pasi Xyy, SWI-Prolog
Hi,
If you have a terminal web browser such as links installed, you 
can, as of the last couple of versions, set the ‘browser’ flag in
your ~/.swiplrc as follows:

:- create_prolog_flag(browser, links-fg, []).

This will bring up links in the terminal when you ask for help.
When you quit links, you will drop back into SWI Prolog.
With a bit more tweaking, you might be able to get it to just
dump the formatted HTML and return to Prolog immediately.

cheers,
Samer

On 11 Oct 2017, at 17:04, Pasi Xyy <pasi...@dnainternet.net> wrote:

Hello forum!

I would like to have the help/1 to print pldoc-documentation about a predicate to a command prompt. Is this possible now?

Thanks.

--
You received this message because you are subscribed to the Google Groups "SWI-Prolog" group.
To unsubscribe from this group and stop receiving emails from it, send an email to swi-prolog+...@googlegroups.com.
Visit this group at https://groups.google.com/group/swi-prolog.
For more options, visit https://groups.google.com/d/optout.

signature.asc
Reply all
Reply to author
Forward
0 new messages