Changeset 948:4d9441f2d3f2 for color.c

Show
Ignore:
Timestamp:
1999-03-15 07:14:29 (10 years ago)
Author:
Thomas Roessler <roessler@…>
Branch:
HEAD
Message:

Fix colorN, N > 7 for Slang's curses emulation. From Vikas.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • color.c

    r703 r948  
    176176      return (Colors[i].name); 
    177177  } 
    178   return (Colors[0].name); 
     178 
     179  /* Sigh. If we got this far, the color is of the form 'colorN' 
     180   * Slang can handle this itself, so just return 'colorN' 
     181   */ 
     182  { 
     183    static char color [SHORT_STRING]; 
     184 
     185    snprintf (color, sizeof (color), "color%d", val); 
     186    return color; 
     187  } 
    179188} 
    180189#endif