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
Availability::- use_module(library(ansi_term)).(can be autoloaded)
Source[semidet]ansi_get_color(+Which, -RGB)
Obtain the RGB color for an ANSI color parameter. Which is either a color alias or an integer ANSI color id. Defined aliases are foreground and background. This predicate sends a request to the console (user_output) and reads the reply. This assumes an xterm compatible terminal.
RGB is a term rgb(Red,Green,Blue). The color components are integers in the range 0..65535.