---
name: "SetConsoleTextAttribute"
section: "3w"
platform: "linux"
package: "libwine-dev"
version: "1.4.1-4"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/SetConsoleTextAttribute"
---

# 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"**.
