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

  • swipl
    • library
      • error.pl
      • debug.pl
      • apply.pl -- Apply predicates on a list
      • lists.pl
      • broadcast.pl
      • 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
      • settings.pl
      • arithmetic.pl
      • main.pl
      • readutil.pl -- Read utilities
      • operators.pl
      • pairs.pl
      • prolog_source.pl
      • record.pl
      • quasi_quotations.pl -- Define Quasi Quotation syntax
      • pure_input.pl
      • solution_sequences.pl
      • ordsets.pl
      • random.pl -- Random numbers
      • base64.pl -- Base64 encoding and decoding
      • aggregate.pl
      • yall.pl
      • sandbox.pl -- Sandboxed Prolog code
      • apply_macros.pl -- Goal expansion rules to avoid meta-calling
      • assoc.pl -- Binary associations
      • prolog_format.pl -- Analyse format specifications
      • predicate_options.pl
      • csv.pl -- Process CSV (Comma-Separated Values) data
      • pprint.pl
      • atom.pl
      • modules.pl
      • occurs.pl
      • prolog_xref.pl
      • prolog_colour.pl
      • lazy_lists.pl
      • ugraphs.pl
      • url.pl
      • www_browser.pl
      • prolog_pack.pl
      • git.pl
      • utf8.pl
      • dialect.pl
      • system.pl
      • terms.pl
      • date.pl
      • persistency.pl
      • iostream.pl -- Utilities to deal with streams
      • prolog_stack.pl -- Examine the Prolog stack
      • edinburgh.pl
      • prolog_clause.pl
      • prolog_breakpoints.pl
      • wfs.pl
      • prolog_code.pl
      • sort.pl
      • dicts.pl
      • dif.pl
      • varnumbers.pl
      • pio.pl
      • writef.pl
      • rbtrees.pl
      • backcomp.pl -- Backward compatibility
      • base32.pl
      • charsio.pl
      • codesio.pl -- I/O on Lists of Character Codes
      • coinduction.pl
      • heaps.pl
      • statistics.pl -- Get information about resource usage
      • when.pl
      • prolog_trace.pl -- Print access to predicates
      • optparse.pl
      • make.pl
      • help.pl
      • exceptions.pl
      • readln.pl
      • intercept.pl
      • prolog_autoload.pl -- Autoload all dependencies
      • check.pl
      • threadutil.pl -- Interactive thread utilities
      • prolog_debug.pl
      • prolog_jiti.pl
      • listing.pl
      • hashtable.pl
      • qsave.pl
      • zip.pl -- Access resource ZIP archives
      • ctypes.pl -- Character code classification
      • prolog_profile.pl
      • prolog_codewalk.pl -- Prolog code walker
      • files.pl
      • increval.pl -- Incremental dynamic predicate modification
      • tables.pl -- XSB interface to tables
      • ansi_term.pl -- Print decorated text to ANSI consoles
        • console_color/2
        • message_line_element/2
        • ansi_format/3
        • ansi_hyperlink/2
        • ansi_hyperlink/3
        • tty_url_hook/2
        • ansi_get_color/2
      • prolog_versions.pl -- Demand specific (Prolog) versions
      • prolog_history.pl
      • nb_set.pl
      • prolog_metainference.pl
      • prolog_coverage.pl -- Coverage analysis tool
      • explain.pl
      • thread.pl
      • strings.pl
      • edit.pl
      • portray_text.pl
      • fastrw.pl
      • macros.pl
      • rwlocks.pl
      • prolog_wrap.pl
      • quintus.pl
      • shell.pl
      • prolog_config.pl
 prolog:console_color(+Term, -AnsiAttributes) is semidet[multifile, library(ansi_term)]
Hook that allows for mapping abstract terms to concrete ANSI attributes. This hook is used by theme files to adjust the rendering based on user preferences and context. Defaults are defined in the file boot/messages.pl, default_theme/2.
See also
- library(theme/dark) for an example implementation and the Term values used by the system messages.