ulogger
athreadsafeloggerwithcoloredoutput
|
#include "colors.h"
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
Go to the source code of this file.
Functions | |
char * | get_ansi_color_scheme (COLORS color) |
returns an ansi color string to be used with printf More... | |
char * | format_colored (COLORS color, char *message) |
prefixes a message with the given ANSI color code More... | |
void | print_colored (COLORS color, char *message) |
prints message to stdout with the given color More... | |
int | write_colored (COLORS color, int file_descriptor, char *message) |
is like print_colored except it writes the data into the given file descriptor More... | |
char* format_colored | ( | COLORS | color, |
char * | message | ||
) |
prefixes a message with the given ANSI color code
Definition at line 56 of file colors.c.
char* get_ansi_color_scheme | ( | COLORS | color | ) |
void print_colored | ( | COLORS | color, |
char * | message | ||
) |