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

# graphics.c(3caca)

Character drawing.

## NAME

graphics.c - Character drawing.

## SYNOPSIS

### Functions

void **caca\_set\_color** (enum **caca\_color** fgcolor, enum **caca\_color** bgcolor)\
 *Set the default colour pair.*  enum **caca\_color** **caca\_get\_fg\_color** (void)\
 *Get the current foreground colour.*  enum **caca\_color** **caca\_get\_bg\_color** (void)\
 *Get the current background colour.*  void **caca\_putchar** (int x, int y, char c)\
 *Print a character.*  void **caca\_putstr** (int x, int y, char const \*s)\
 *Print a string.*  void **caca\_printf** (int x, int y, char const \*format,...)\
 *Format a string.*  void **caca\_clear** (void)\
 *Clear the screen.*  int **caca\_set\_window\_title** (char const \*title)\
 *Set the window title.*  unsigned int **caca\_get\_window\_width** (void)\
 *Get the window width.*  unsigned int **caca\_get\_window\_height** (void)\
 *Get the window height.*  void **caca\_set\_delay** (unsigned int usec)\
 *Set the refresh delay.*  unsigned int **caca\_get\_rendertime** (void)\
 *Get the average rendering time.*  void **caca\_refresh** (void)\
 *Flush pending changes and redraw the screen.*

## Detailed Description

**Version:**

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

**Author:**

Sam Hocevar \<sam@zoy.org\>

This file contains character and string drawing functions.

## Author

Generated automatically by Doxygen for libcaca from the source code.
