/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
      • readutil.pl
      • 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
      • www_browser.pl
      • prolog_pack.pl
      • git.pl
      • rbtrees.pl
      • dif.pl
      • charsio.pl
      • prolog_stack.pl
      • edinburgh.pl
      • prolog_clause.pl
      • prolog_breakpoints.pl
      • wfs.pl
      • dialect.pl
      • prolog_code.pl
      • sort.pl
      • iostream.pl -- Utilities to deal with streams
      • dicts.pl
      • varnumbers.pl
      • listing.pl
      • prolog_coverage.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
      • terms.pl -- Term manipulation
      • backcomp.pl
      • base32.pl
      • codesio.pl
      • coinduction.pl
      • date.pl
      • heaps.pl
      • statistics.pl
      • utf8.pl
      • when.pl
      • prolog_history.pl
      • intercept.pl
      • persistency.pl
      • check.pl
      • strings.pl
      • thread.pl
      • prolog_debug.pl
      • macros.pl
      • optparse.pl
      • exceptions.pl
      • qsave.pl
      • zip.pl
      • tables.pl
      • make.pl
      • threadutil.pl -- Interactive thread utilities
      • edit.pl
      • increval.pl
      • prolog_codewalk.pl
      • prolog_versions.pl
      • prolog_trace.pl
      • nb_set.pl
      • help.pl
      • portray_text.pl
      • fastrw.pl
      • prolog_profile.pl
      • shell.pl
      • explain.pl
      • writef.pl
      • files.pl
      • prolog_autoload.pl
      • prolog_jiti.pl
      • quintus.pl
      • rwlocks.pl
      • prolog_config.pl
      • oset.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.