Print_Color module

push_console_color

procedure · 1 overloadSource

Show color on a standard stream, remembering what was there. Every push needs a pop; the colors nest and each pop restores the enclosing one. A stream that is not a console is not touched, but the push still counts so the pops stay balanced.

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

Show color on a standard stream, remembering what was there. Every push needs a pop; the colors nest and each pop restores the enclosing one. A stream that is not a console is not touched, but the push still counts so the pops stay balanced.

Parameters

to_standard_error := false

See also