---
name: "caca.c"
section: "3caca"
platform: "linux"
package: "libcaca-dev"
version: "0.9-4"
release: "Debian 3.1 (Sarge)"
platforms: ["linux"]
url: "https://new.carta.tech/caca.c"
---

# caca.c(3caca)

Main libcaca functions.

## NAME

caca.c - Main *libcaca* functions.

## SYNOPSIS

### Functions

int **caca\_init** (void)\
 *Initialise libcaca.*  unsigned int **caca\_get\_width** (void)\
 *Get the screen width.*  unsigned int **caca\_get\_height** (void)\
 *Get the screen height.*  char const \* **caca\_get\_color\_name** (enum **caca\_color** color)\
 *Translate a colour index into the colour's name.*  enum **caca\_feature** **caca\_get\_feature** (enum **caca\_feature** feature)\
 *Get the current value of a feature.*  void **caca\_set\_feature** (enum **caca\_feature** feature)\
 *Set a feature.*  char const \* **caca\_get\_feature\_name** (enum **caca\_feature** feature)\
 *Translate a feature value into the feature's name.*  void **caca\_end** (void)\
 *Uninitialise libcaca.*

## Detailed Description

**Version:**

$Id: **caca.c** 258 2004-01-26 10:52:30Z sam $

**Author:**

Sam Hocevar \<sam@zoy.org\>

This file contains the main functions used by *libcaca* applications to initialise the library, get the screen properties, set the framerate and so on.

## Author

Generated automatically by Doxygen for libcaca from the source code.
