Functions | |
void | caca_set_color (enum caca_color, enum caca_color) |
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. | |
char const * | caca_get_color_name (enum caca_color) |
Translate a colour index into the colour's name. | |
void | caca_putchar (int, int, char) |
Print a character. | |
void | caca_putstr (int, int, char const *) |
Print a string. | |
void | caca_printf (int, int, char const *,...) |
Format a string. | |
void | caca_clear (void) |
Clear the screen. |
|
This function clears the screen using a black background. |
|
This function returns the current background colour that was set with caca_set_color().
|
|
This function translates a caca_color enum into a human-readable description string of the associated colour.
|
|
This function returns the current foreground colour that was set with caca_set_color().
|
|
This function formats a string at the given coordinates, using the default foreground and background values. The coordinates may be outside the screen boundaries (eg. a negative Y coordinate) and the string will be cropped accordingly if it is too long. The syntax of the format string is the same as for the C printf() function.
|
|
This function prints a character at the given coordinates, using the default foreground and background values. If the coordinates are outside the screen boundaries, nothing is printed.
|
|
This function prints a string at the given coordinates, using the default foreground and background values. The coordinates may be outside the screen boundaries (eg. a negative Y coordinate) and the string will be cropped accordingly if it is too long.
|
|
This function sets the default colour pair. String functions such as caca_printf() and graphical primitive functions such as caca_draw_line() will use these colour pairs.
|