Using SWI-Prolog Interactively - Output Taken off

后端 未结 2 1461
广开言路
广开言路 2020-12-12 06:20

I\'m using SWI-Prolog interactively. When I run my query, I get a prefix of the output and the rest is taken off (marked using the string ...|...). Is this norm

2条回答
  •  北荒
    北荒 (楼主)
    2020-12-12 06:36

    The number of items shown is controlled by a prolog flag. You can remove it by issuing

    remove_max_depth:-
        current_prolog_flag(toplevel_print_options,Options), 
        select(max_depth(_), Options, NOptions)->
        set_prolog_flag(toplevel_print_options, NOptions); true.
    

提交回复
热议问题