All predicatesShow sourceconsole_input.pl -- Support entering toplevel queries

This module implements prolog:complete_input/4, which is used notably by the command line editor library(edit) to perform context aware TAB completion. It is a seperate library such that other input scenarios can reuse this code.

Source prolog:complete_input(+BeforeCursor:string, +AfterCursor:string, -Delete:atom, -Completions:list) is semidet[multifile]
Compute auto completions for the input line BeforeCursor+AfterCursor. Implemented completions
Arguments:
Delete- is an atom or string representing the text that is replaced by the completion
Completions- is a list of elements of this shape:
Atom
Used for a plain completion without comment
Atom - Comment
Used for a completion with comment. This will be used for predicates.
 identifier_prefix(-Prefix, -Type) is semidet[private]
 identifier_prefix_r(-Prefix, -Type) is semidet[private]
Source file_prefix(-Prefix, -Type)// is semidet[private]
True when the part before the cursor looks like a file name.
 finish_file_name(+Matches, -Completions) is det[private]
Add closing quote for a unique file name.
Source complete_alias(+Alias:atom, +Prefix:atom, +Close:atom, -Completions:list) is semidet[private]
Complete to an path alias "Alias(Prefix".