paraslash Paraslash Audio Streaming
About   News   Download   Documentation   Development

Functions
color.c File Reference

Functions for printing colored messages. More...

#include "para.h"
#include "color.h"

Functions

void color_parse_or_die (const char *value, char *dst)
 Create an escape sequence for colored output. More...
 

Detailed Description

Functions for printing colored messages.

Function Documentation

◆ color_parse_or_die()

void color_parse_or_die ( const char *  value,
char *  dst 
)

Create an escape sequence for colored output.

Parameters
valueHuman-readable color spec.
dstResult pointer for the escape sequence.

Format of value: [fg [bg]] [attr].

References COLOR_RESET, and para_isspace.

Referenced by daemon_set_log_color_or_die().