Print_Color module

with_console_color

procedureSource

Runs code with the console set to color, and resets it afterwards.

Example↗
with_console_color(.RED, #code print("warning\n"), .BOLD);
with_console_color :: (
    color: Console_Color,
    code: Code,
    style: Console_Style = .NORMAL,
    to_standard_error := false
)

Parameters

code: Code
style: Console_Style = .NORMAL
to_standard_error := false

See also