ncmpc  0.31
Functions
BasicColors.hxx File Reference
#include "util/Compiler.h"

Go to the source code of this file.

Functions

gcc_pure short ParseBasicColorName (const char *name)
 
gcc_pure short ParseColorNameOrNumber (const char *s)
 

Function Documentation

◆ ParseBasicColorName()

gcc_pure short ParseBasicColorName ( const char *  name)

Parse an ncurses color name.

Returns
the COLOR_* integer value or -1 on error

◆ ParseColorNameOrNumber()

gcc_pure short ParseColorNameOrNumber ( const char *  s)

Like ParseBasicColorName(), but also allow numeric colors.

Returns
the color integer value or -1 on error