Ignore:
Timestamp:
Oct 31, 2006, 2:29:48 PM (14 years ago)
Author:
Sam Hocevar
Message:
  • Got rid of cucul_ansi_to_attr() and cucul_argb_to_attr() and restored cucul_set_color() and cucul_set_truecolor() under the new names cucul_set_color_ansi() and cucul_set_color_argb().
  • Renamed cucul_get_color_name() into cucul_ansi_to_str().
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/test/colors.c

    r1266 r1267  
    3636        return 1;
    3737
    38     cucul_set_attr(cv, cucul_ansi_to_attr(CUCUL_LIGHTGRAY, CUCUL_BLACK));
     38    cucul_set_color_ansi(cv, CUCUL_LIGHTGRAY, CUCUL_BLACK);
    3939    cucul_clear_canvas(cv);
    4040    for(i = 0; i < 16; i++)
    4141    {
    42         cucul_set_attr(cv, cucul_ansi_to_attr(CUCUL_LIGHTGRAY, CUCUL_BLACK));
     42        cucul_set_color_ansi(cv, CUCUL_LIGHTGRAY, CUCUL_BLACK);
    4343        cucul_printf(cv, 3, i + (i >= 8 ? 3 : 2), "'%cv': %i (%s)",
    44                      'a' + i, i, cucul_get_color_name(i));
     44                     'a' + i, i, cucul_ansi_to_str(i));
    4545        for(j = 0; j < 16; j++)
    4646        {
    47             cucul_set_attr(cv, cucul_ansi_to_attr(i, j));
     47            cucul_set_color_ansi(cv, i, j);
    4848            cucul_putstr(cv, (j >= 8 ? 40 : 39) + j * 2, i + (i >= 8 ? 3 : 2),
    4949                         "Aa");
     
    5151    }
    5252
    53     cucul_set_attr(cv, cucul_ansi_to_attr(CUCUL_LIGHTGRAY, CUCUL_BLACK));
     53    cucul_set_color_ansi(cv, CUCUL_LIGHTGRAY, CUCUL_BLACK);
    5454    cucul_putstr(cv, 3, 20, "This is bold    This is blink    This is italics    This is underline");
    5555    cucul_set_attr(cv, CUCUL_BOLD);
Note: See TracChangeset for help on using the changeset viewer.