A.2 library(ansi_term): Print decorated text to ANSI consoles
AllApplicationManualNameSummaryHelp

  • Documentation
    • Reference manual
      • The SWI-Prolog library
        • library(ansi_term): Print decorated text to ANSI consoles
          • ansi_format/3
          • console_color/2
          • message_line_element/2
          • ansi_hyperlink/2
          • ansi_hyperlink/3
          • hyperlink/2
          • ansi_get_color/2
    • Packages
[semidet,multifile]prolog:console_color(+Term, -AnsiAttributes)
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.
See also
library(theme/dark) for an example implementation and the Term values used by the system messages.