statustext color parsing trial [UNSTABLE]

This commit is contained in:
Martin Duquesnoy
2009-06-24 10:03:52 +02:00
parent 0b21569b3a
commit ad0bedd285
5 changed files with 86 additions and 29 deletions

View File

@@ -199,6 +199,20 @@ get_mouse_pos(void)
return ret;
}
/** Transform one character to string
*\param ch The character that will be tranforming
*\return The string.
*/
char*
char_to_str(const char c)
{
static char s[2];
s[0] = c;
s[1] = '\0';
return s;
}
/** Execute a sh command
* \param cmd Command