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

  • swipl
    • library
      • error.pl
      • debug.pl -- Print debug messages and test assertions
      • apply.pl
      • lists.pl
      • broadcast.pl
      • shlib.pl
      • option.pl
      • thread_pool.pl
      • gensym.pl
      • settings.pl
      • arithmetic.pl
      • main.pl
      • readutil.pl
      • operators.pl
      • pairs.pl
      • prolog_source.pl
      • record.pl -- Access compound arguments by name
      • quasi_quotations.pl
      • pure_input.pl
      • solution_sequences.pl -- Modify solution sequences
      • ordsets.pl
      • random.pl
      • base64.pl -- Base64 encoding and decoding
      • 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 -- Prolog syntax colouring support.
      • lazy_lists.pl -- Lazy list handling
      • 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 -- The dif/2 constraint
      • varnumbers.pl
      • pio.pl
      • prolog_versions.pl -- Demand specific (Prolog) versions
      • prolog_profile.pl
      • prolog_coverage.pl
      • base32.pl -- Base32 encoding and decoding
      • charsio.pl
      • codesio.pl -- I/O on Lists of Character Codes
      • coinduction.pl
      • heaps.pl -- heaps/priority queues
      • rbtrees.pl
      • statistics.pl
      • when.pl
      • backcomp.pl
      • oset.pl
      • strings.pl
      • fastrw.pl
      • optparse.pl
      • make.pl
      • nb_set.pl
      • prolog_autoload.pl
      • check.pl -- Consistency checking
      • prolog_codewalk.pl -- Prolog code walker
      • thread.pl -- High level thread primitives
      • threadutil.pl -- Interactive thread utilities
      • ctypes.pl -- Character code classification
      • increval.pl
      • tables.pl
      • prolog_metainference.pl -- Infer meta-predicate properties
      • zip.pl
      • explain.pl
      • streams.pl -- Manage Prolog streams
      • prolog_debug.pl
      • prolog_wrap.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 -- List programs and pretty print clauses
      • shell.pl
      • writef.pl -- Old-style formatted write
      • edit.pl -- Editor interface
      • intercept.pl
      • prolog_trace.pl -- Print access to predicates
      • help.pl
      • quintus.pl
      • rwlocks.pl
      • macros.pl
      • portray_text.pl
      • prolog_config.pl
      • prolog_jiti.pl -- Just In Time Indexing (JITI) utilities
      • qsave.pl
      • prolog_history.pl
      • hashtable.pl
      • exceptions.pl
      • tty.pl
      • readln.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.