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

  • swipl
    • library
      • error.pl
      • debug.pl
      • apply.pl
      • lists.pl
      • broadcast.pl
      • shlib.pl
      • option.pl
      • thread_pool.pl
      • gensym.pl
      • settings.pl
      • arithmetic.pl -- Extensible arithmetic
      • main.pl -- Provide entry point for scripts
      • readutil.pl -- Read utilities
      • operators.pl
      • pairs.pl
      • prolog_source.pl
      • record.pl
      • quasi_quotations.pl
      • pure_input.pl
      • solution_sequences.pl
      • ordsets.pl
      • random.pl
      • base64.pl
      • aggregate.pl
      • yall.pl
      • sandbox.pl
      • apply_macros.pl -- Goal expansion rules to avoid meta-calling
      • assoc.pl
      • prolog_format.pl
      • predicate_options.pl
      • csv.pl
      • pprint.pl
      • atom.pl
      • modules.pl
      • occurs.pl
      • prolog_xref.pl
      • prolog_colour.pl
      • lazy_lists.pl
      • ugraphs.pl
      • url.pl -- Analysing and constructing URL
      • www_browser.pl
      • prolog_pack.pl
      • git.pl
      • utf8.pl
      • dialect.pl
      • system.pl -- System utilities
      • terms.pl
      • date.pl
      • persistency.pl
      • iostream.pl -- Utilities to deal with streams
      • prolog_stack.pl
      • edinburgh.pl
      • prolog_clause.pl
      • prolog_breakpoints.pl
      • wfs.pl
      • prolog_code.pl
      • sort.pl
      • dicts.pl
      • dif.pl
      • varnumbers.pl
      • pio.pl -- Pure I/O
      • prolog_jiti.pl
      • 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
      • listing.pl
      • backcomp.pl
      • base32.pl
      • charsio.pl
      • codesio.pl
      • coinduction.pl
      • heaps.pl
      • rbtrees.pl -- Red black trees
      • statistics.pl
      • when.pl
      • tables.pl
      • ctypes.pl -- Character code classification
      • prolog_wrap.pl
      • thread.pl
      • prolog_coverage.pl -- Coverage analysis tool
      • hashtable.pl
      • explain.pl
      • portray_text.pl
      • quintus.pl -- Quintus compatibility
      • threadutil.pl -- Interactive thread utilities
      • prolog_trace.pl
      • writef.pl
      • prolog_versions.pl -- Demand specific (Prolog) versions
      • optparse.pl
      • make.pl
      • prolog_codewalk.pl
      • zip.pl
      • strings.pl
      • nb_set.pl
      • qsave.pl
      • prolog_debug.pl -- User level debugging tools
      • increval.pl
      • intercept.pl
      • shell.pl -- Elementary shell commands
      • prolog_metainference.pl -- Infer meta-predicate properties
      • check.pl
      • prolog_autoload.pl
      • streams.pl -- Manage Prolog streams
      • prolog_profile.pl
      • readln.pl
      • prolog_history.pl
      • prolog_config.pl
      • edit.pl
      • exceptions.pl
      • rwlocks.pl
      • macros.pl
      • tty.pl
      • help.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.