Did you know ... | Search Documentation: |
Controlling colored output on the terminal |
By default, SWI-Prolog will use colored output on the commandline
based on library(ansi_term) if the current_output
stream is
connected to a terminal. This is detected by the tty
property of
streams (see stream_property/2). Coloring can be controlled in two
ways
:- set_prolog_flag(color_term, false).
Color themes are defined in the theme
subdirectory of the library.
These control both color handling in the console and the xpce based
IDE tools such as PceEmacs. The system ships with two themes:
dark
if this seems more applicable. Note that not all
console applications are capable of exposing their color
scheme. See ansi_get_color/2.
New themes can be added, for example to your personal
library. The easiest way to define a new theme
is by cloning the dark
theme.