Changeset 19:b51da8d4048a for color.c
Legend:
- Unmodified
- Added
- Removed
-
color.c
r0 r19 348 348 s += 5; 349 349 *col = strtol (s, &eptr, 10); 350 if (!*s || *eptr || *col < 0 || *col >= COLORS) 350 if (!*s || *eptr || *col < 0 || 351 (*col >= COLORS && !option(OPTNOCURSES) && has_colors())) 351 352 { 352 353 snprintf (err->data, err->dsize, "%s: color not supported by term", s);
