Did you know ... Search Documentation:
Predicate complete_input/4
 prolog:complete_input(+BeforeCursor, +AfterCursor, -Delete, -Completions) is det[multifile, library(console_input)]
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.
 prolog:complete_input(+BeforeCursor, +AfterCursor, -Delete, -Completions) is det[multifile, library(console_input)]
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.