Print_Color module

console_attributes_for

procedure · 1 overloadSource

The attribute word that shows color and style on top of current. A foreground color replaces only the foreground and a background color only the background, so a block colored on its text keeps the enclosing block's background. BOLD brightens the foreground; UNDERLINE underlines; NORMAL removes an enclosing underline.

console_attributes_for :: (
    current: u16,
    color: Console_Color,
    style: Console_Style = .NORMAL
) -> u16

The attribute word that shows color and style on top of current. A foreground color replaces only the foreground and a background color only the background, so a block colored on its text keeps the enclosing block's background. BOLD brightens the foreground; UNDERLINE underlines; NORMAL removes an enclosing underline.

Parameters

current: u16

Returns

u16

See also