Default Query Classes

Most of the default query classes are designed to support some specific interaction with the user within the Prolog development environment. The full list of query classes can be inspected in the file library('SU_messages'). Here, we only describe the two classes defined by 'SU_messages':query_class/5 that may be of general use:

QueryClass yes_or_no yes_no_proceed
Prompt ' (y or n) ' ' (y, n, p, s, a, or ?) '
InputMethod line line
MapMethod char([yes-"yY", no-"nN"]) char([yes-"yY", no-"nN", proceed-"pP", suppress-"sS", abort-"aA"])
FailureMode help_query help_query