Function

Termboxattr_indexed

Declaration

TbgAttr
tbg_attr_indexed (
  uint8_t index,
  TbgAttrFlags flags
)

Description

Create an indexed-color attribute.

The interpretation of index depends on the current termbox output mode.

Parameters

index

Type: uint8_t

A terminal palette index.

flags

Type: TbgAttrFlags

Style flags to combine with index.

Return value

Type: TbgAttr

An attribute containing index and flags.