Print_Color module

set_console_color

procedure2 overloadsSource

Switches the text color on standard output, or on standard error with to_standard_error. Everything printed afterwards has it until reset_console_color. Prefer print_color or with_console_color, which can't forget to reset.

Example↗
set_console_color(.GREEN);
print("ok\n");
reset_console_color();
set_console_color :: (
    color: Console_Color,
    style: Console_Style = .NORMAL,
    to_standard_error := false
)

Parameters

style: Console_Style = .NORMAL
to_standard_error := false
set_console_color :: (
    color: Console_Color,
    style: Console_Style = .NORMAL,
    to_standard_error := false
)

Parameters

style: Console_Style = .NORMAL
to_standard_error := false

See also