Did you know ... Search Documentation:
console_input.pl
PublicShow source
Source prolog:complete_input(+BeforeCursor, +AfterCursor, -Delete, -Completions) is det[multifile]
Compute auto completions for the input line BeforeCursor+AfterCursor.
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.
 atom_prefix(-Prefix) is det[private]
Source file_prefix(-Prefix)// is semidet[private]
True when the part before the cursor looks like a file name.