Ignore:
Timestamp:
Oct 29, 2006, 9:35:46 AM (14 years ago)
Author:
Sam Hocevar
Message:
  • Remove cucul_set_color() from the exported API and replaced all calls with cucul_set_attr_ansi(). Old application will still compile (but issue a warning) and run, though.
File:
1 edited

Legend:

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

    r1048 r1256  
    4444    dp = caca_create_display(cv);
    4545
    46     cucul_set_color(cv, CUCUL_COLOR_WHITE, CUCUL_COLOR_BLUE);
     46    cucul_set_attr_ansi(cv, CUCUL_COLOR_WHITE, CUCUL_COLOR_BLUE, 0);
    4747    cucul_putstr(cv, 1, 1, "Text entries - press tab to cycle");
    4848
     
    6262            unsigned int j, start, size;
    6363
    64             cucul_set_color(cv, CUCUL_COLOR_BLACK, CUCUL_COLOR_LIGHTGRAY);
     64            cucul_set_attr_ansi(cv, CUCUL_COLOR_BLACK,
     65                                    CUCUL_COLOR_LIGHTGRAY, 0);
    6566            cucul_fill_box(cv, 2, 3 * i + 4, 2 + BUFFER_SIZE, 3 * i + 4, " ");
    6667
     
    7677
    7778        /* Put the cursor on the active textentry */
    78         cucul_set_color(cv, CUCUL_COLOR_LIGHTRED, CUCUL_COLOR_LIGHTRED);
     79        cucul_set_attr_ansi(cv, CUCUL_COLOR_LIGHTRED, CUCUL_COLOR_LIGHTRED, 0);
    7980        cucul_putchar(cv, 2 + entries[e].cursor, 3 * e + 4, ' ');
    8081
Note: See TracChangeset for help on using the changeset viewer.