Return to colour.c CVS log | Up to [local] / src / usr.bin / tmux |
version 1.18, 2019/06/27 15:17:41 | version 1.19, 2020/08/25 11:35:32 | ||
---|---|---|---|
|
|
||
return (-1); | return (-1); | ||
return (n | COLOUR_FLAG_256); | return (n | COLOUR_FLAG_256); | ||
} | } | ||
if (strncasecmp(s, "color", (sizeof "color") - 1) == 0) { | |||
n = strtonum(s + (sizeof "color") - 1, 0, 255, &errstr); | |||
if (errstr != NULL) | |||
return (-1); | |||
return (n | COLOUR_FLAG_256); | |||
} | |||
if (strcasecmp(s, "default") == 0) | if (strcasecmp(s, "default") == 0) | ||
return (8); | return (8); |