Je viens de voir la solution au problème du "more" dans la liste SWI-Prolog.
Avec les nouvelles versions, il faut positionner un flag :
dans le pl.ini obtenu par le menu /settings/user ini, il faut rajouter la directive:
:- set_prolog_flag(prompt_alternatives_on, groundness).
Voici l'extrait du message
Envoyé par
Norbert E. Fuchs et kantze
> Have a look at Prolog flags
>
>> The predicates current_prolog_flag/2 and set_prolog_flag/2 allow
>> the user to examine and modify the execution environment. It
>> provides access to whether optional features are available on this
>> version, operating system, foreign-code environment, command-line
>> arguments, version, as well as runtime flags to control the runtime
>> behaviour of certain predicates to achieve compatibility with other
>> Prolog environments.
>>
>
> specifically
>
>> prompt_alternatives_on(atom, changeable)
>> Determines prompting for alternatives in the Prolog toplevel.
>> Default is determinism, which implies the system prompts for
>> alternatives if the goal succeeded while leaving choicepoints. Many
>> classical Prolog systems behave as groundness: they prompt for
>> alternatives if and only if the query contains variables.
>
> Using the default "determinism" results in
>
> ?- test(a).
> More?
>
> while using "groundness" results in
>
> ?- test(a).
> Yes
>
>
> Regards.
Partager