Reference

SetConsoleTextAttribute(3w)

NAME

SetConsoleTextAttribute (KERNEL32.@)

SYNOPSIS

BOOL SetConsoleTextAttribute
(
HANDLE hConsoleOutput,
WORD wAttr
)

DESCRIPTION

SetConsoleTextAttribute [KERNEL32.@] Sets colors for text.

Sets the foreground and background color attributes of characters written to the screen buffer.

RETURNS

Success: TRUE

Failure: FALSE

IMPLEMENTATION

Declared in "wincon.h".

Implemented in "dlls/kernel32/console.c".

Debug channel "console".

History