---
name: "cucul_attr"
section: "3caca"
platform: "linux"
package: "libcucul-dev"
version: "0.99.beta14-1"
release: "Debian 5.0 (Lenny)"
platforms: ["linux"]
url: "https://new.carta.tech/cucul_attr"
---

# cucul\_attr(3caca)

## NAME

libcucul attribute definitions -

### Defines

\#define **CUCUL\_BLACK**   0x00\
 \#define **CUCUL\_BLUE**   0x01\
 \#define **CUCUL\_GREEN**   0x02\
 \#define **CUCUL\_CYAN**   0x03\
 \#define **CUCUL\_RED**   0x04\
 \#define **CUCUL\_MAGENTA**   0x05\
 \#define **CUCUL\_BROWN**   0x06\
 \#define **CUCUL\_LIGHTGRAY**   0x07\
 \#define **CUCUL\_DARKGRAY**   0x08\
 \#define **CUCUL\_LIGHTBLUE**   0x09\
 \#define **CUCUL\_LIGHTGREEN**   0x0a\
 \#define **CUCUL\_LIGHTCYAN**   0x0b\
 \#define **CUCUL\_LIGHTRED**   0x0c\
 \#define **CUCUL\_LIGHTMAGENTA**   0x0d\
 \#define **CUCUL\_YELLOW**   0x0e\
 \#define **CUCUL\_WHITE**   0x0f\
 \#define **CUCUL\_DEFAULT**   0x10\
 \#define **CUCUL\_TRANSPARENT**   0x20\
 \#define **CUCUL\_BOLD**   0x01\
 \#define **CUCUL\_ITALICS**   0x02\
 \#define **CUCUL\_UNDERLINE**   0x04\
 \#define **CUCUL\_BLINK**   0x08\

## Detailed Description

Colours and styles that can be used with **cucul\_set\_attr()**.

## Define Documentation

### #define CUCUL\_BLACK 0x00

The colour index for black.

Referenced by cucul\_attr\_to\_ansi(), cucul\_attr\_to\_argb64(), cucul\_attr\_to\_rgb12\_bg(), and cucul\_dither\_bitmap().

### #define CUCUL\_BLUE 0x01

The colour index for blue.

### #define CUCUL\_GREEN 0x02

The colour index for green.

### #define CUCUL\_CYAN 0x03

The colour index for cyan.

### #define CUCUL\_RED 0x04

The colour index for red.

### #define CUCUL\_MAGENTA 0x05

The colour index for magenta.

### #define CUCUL\_BROWN 0x06

The colour index for brown.

### #define CUCUL\_LIGHTGRAY 0x07

The colour index for light gray.

Referenced by cucul\_attr\_to\_ansi(), cucul\_attr\_to\_argb64(), and cucul\_attr\_to\_rgb12\_fg().

### #define CUCUL\_DARKGRAY 0x08

The colour index for dark gray.

### #define CUCUL\_LIGHTBLUE 0x09

The colour index for blue.

### #define CUCUL\_LIGHTGREEN 0x0a

The colour index for light green.

### #define CUCUL\_LIGHTCYAN 0x0b

The colour index for light cyan.

### #define CUCUL\_LIGHTRED 0x0c

The colour index for light red.

### #define CUCUL\_LIGHTMAGENTA 0x0d

The colour index for light magenta.

### #define CUCUL\_YELLOW 0x0e

The colour index for yellow.

### #define CUCUL\_WHITE 0x0f

The colour index for white.

### #define CUCUL\_DEFAULT 0x10

The output driver's default colour.

Referenced by cucul\_attr\_to\_argb64(), cucul\_attr\_to\_rgb12\_bg(), cucul\_attr\_to\_rgb12\_fg(), and cucul\_create\_canvas().

### #define CUCUL\_TRANSPARENT 0x20

The transparent colour.

Referenced by cucul\_attr\_to\_argb64(), cucul\_attr\_to\_rgb12\_bg(), cucul\_attr\_to\_rgb12\_fg(), and cucul\_create\_canvas().

### #define CUCUL\_BOLD 0x01

The style mask for bold.

### #define CUCUL\_ITALICS 0x02

The style mask for italics.

### #define CUCUL\_UNDERLINE 0x04

The style mask for underline.

### #define CUCUL\_BLINK 0x08

The style mask for blink.
