/usr/lib/swipl/library/console_input.pl
All Application Manual Name SummaryHelp

  • swipl
    • library
      • error.pl
      • debug.pl -- Print debug messages and test assertions
      • apply.pl -- Apply predicates on a list
      • lists.pl -- List Manipulation
      • broadcast.pl -- Event service
      • shlib.pl -- Utility library for loading foreign objects (DLLs, shared objects)
      • option.pl -- Option list processing
      • thread_pool.pl -- Resource bounded thread management
      • gensym.pl -- Generate unique symbols
      • settings.pl
      • arithmetic.pl -- Extensible arithmetic
      • main.pl -- Provide entry point for scripts
      • readutil.pl -- Read utilities
      • operators.pl -- Manage operators
      • pairs.pl -- Operations on key-value lists
      • prolog_source.pl -- Examine Prolog source-files
      • record.pl -- Access compound arguments by name
      • quasi_quotations.pl -- Define Quasi Quotation syntax
      • sandbox.pl
      • apply_macros.pl -- Goal expansion rules to avoid meta-calling
      • yall.pl -- Lambda expressions
      • assoc.pl -- Binary associations
      • prolog_format.pl -- Analyse format specifications
      • pure_input.pl
      • solution_sequences.pl -- Modify solution sequences
      • ordsets.pl -- Ordered set manipulation
      • random.pl -- Random numbers
      • base64.pl -- Base64 encoding and decoding
      • aggregate.pl -- Aggregation operators on backtrackable predicates
      • predicate_options.pl -- Access and analyse predicate options
      • csv.pl -- Process CSV (Comma-Separated Values) data
      • pprint.pl
      • atom.pl -- Operations on atoms
      • modules.pl -- Module utility predicates
      • occurs.pl -- Finding and counting sub-terms
      • prolog_xref.pl -- Prolog cross-referencer data collection
      • prolog_colour.pl -- Prolog syntax colouring support.
      • lazy_lists.pl -- Lazy list handling
      • ugraphs.pl -- Graph manipulation library
      • url.pl -- Analysing and constructing URL
      • www_browser.pl -- Open a URL in the users browser
      • prolog_pack.pl -- A package manager for Prolog
      • git.pl -- Run GIT commands
      • utf8.pl -- UTF-8 encoding/decoding on lists of character codes.
      • quintus.pl
      • prolog_versions.pl -- Demand specific (Prolog) versions
      • prolog_wrap.pl -- Wrapping predicates
      • dialect.pl -- Support multiple Prolog dialects
      • date.pl -- Process dates and times
      • persistency.pl -- Provide persistent dynamic predicates
      • iostream.pl -- Utilities to deal with streams
      • prolog_code.pl -- Utilities for reasoning about code
      • strings.pl -- String utilities
      • terms.pl -- Term manipulation
      • edinburgh.pl -- Some traditional Edinburgh predicates
      • dif.pl -- The dif/2 constraint
      • ansi_term.pl -- Print decorated text to ANSI consoles
      • threadutil.pl -- Interactive thread utilities
      • prolog_stack.pl -- Examine the Prolog stack
      • prolog_clause.pl
      • prolog_breakpoints.pl -- Manage Prolog break-points
      • wfs.pl -- Well Founded Semantics interface
      • sort.pl
      • dicts.pl -- Dict utilities
      • varnumbers.pl -- Utilities for numbered terms
      • rbtrees.pl -- Red black trees
      • backcomp.pl
      • qsave.pl
      • zip.pl -- Access resource ZIP archives
      • prolog_autoload.pl -- Autoload all dependencies
      • check.pl -- Consistency checking
      • listing.pl
      • help.pl
      • charsio.pl -- I/O on Lists of Character Codes
      • optparse.pl -- command line parsing
      • make.pl -- Reload modified source files
      • prolog_coverage.pl
      • prolog_trace.pl
      • prolog_history.pl
      • base32.pl -- Base32 encoding and decoding
      • check_installation.pl -- Check installation issues and features
      • prolog_deps.pl
      • ctypes.pl -- Character code classification
      • statistics.pl -- Get information about resource usage
      • codesio.pl -- I/O on Lists of Character Codes
      • coinduction.pl -- Co-Logic Programming
      • heaps.pl -- heaps/priority queues
      • when.pl -- Conditional coroutining
      • shell.pl -- Elementary shell commands
      • streams.pl -- Manage Prolog streams
      • vm.pl
      • thread.pl -- High level thread primitives
      • prolog_codewalk.pl -- Prolog code walker
      • intercept.pl -- Intercept and signal interface
      • system.pl -- System utilities
      • prolog_debug.pl -- User level debugging tools
      • writef.pl
      • prolog_call_cycles.pl
      • prolog_auto_table.pl
      • console_input.pl -- Support entering toplevel queries
        • complete_input/4
 prolog:complete_input(+BeforeCursor:string, +AfterCursor:string, -Delete:atom, -Completions:list) is semidet[multifile, library(console_input)]
Compute auto completions for the input line BeforeCursor+AfterCursor. Implemented completions
  • Files<br>
    • Text starting '<prefix> (single quotes) is completed as a file. If there is a single matching file a terminating `'` is added.
    • If the start of the line is [<prefix> and text can be a non-quoted atom, look for Prolog files with this name. Directories can be inserted as / (unquoted), as long as each segment is a valid atom. If a single .pl file is found it is closed with ], without the extension.
    • Text starting library(<prefix> is completed as a library file using the same rules as [<prefix>, but looking in all library directories instead of the current directory.
  • Atoms
    <prefix> is used to complete atoms that can be written without quotes (excluding symbol atoms such as -->) and are permanent, i.e., have references from clauses records, flags, foreign code, etc.
  • Variables
    <Prefix> is completed as an atom if it is a valid variable name. It is completed with other atoms from the query being edited using the same search as Emacs dabbrev (Dynamic Abbreviation). $<Prefix> expands to saved toplevel variables.
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.