Ignore:
Timestamp:
Oct 31, 2006, 9:17:58 AM (14 years ago)
Author:
Sam Hocevar
Message:
  • Changed cucul_set_attr() so that only setting the style does not change the colour.
File:
1 edited

Legend:

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

    r1263 r1266  
    5353    cucul_set_attr(cv, cucul_ansi_to_attr(CUCUL_LIGHTGRAY, CUCUL_BLACK));
    5454    cucul_putstr(cv, 3, 20, "This is bold    This is blink    This is italics    This is underline");
    55     cucul_set_attr(cv, cucul_ansi_to_attr(CUCUL_LIGHTGRAY, CUCUL_BLACK) | CUCUL_BOLD);
     55    cucul_set_attr(cv, CUCUL_BOLD);
    5656    cucul_putstr(cv, 3 + 8, 20, "bold");
    57     cucul_set_attr(cv, cucul_ansi_to_attr(CUCUL_LIGHTGRAY, CUCUL_BLACK) | CUCUL_BLINK);
     57    cucul_set_attr(cv, CUCUL_BLINK);
    5858    cucul_putstr(cv, 3 + 24, 20, "blink");
    59     cucul_set_attr(cv, cucul_ansi_to_attr(CUCUL_LIGHTGRAY, CUCUL_BLACK) | CUCUL_ITALICS);
     59    cucul_set_attr(cv, CUCUL_ITALICS);
    6060    cucul_putstr(cv, 3 + 41, 20, "italics");
    61     cucul_set_attr(cv, cucul_ansi_to_attr(CUCUL_LIGHTGRAY, CUCUL_BLACK) | CUCUL_UNDERLINE);
     61    cucul_set_attr(cv, CUCUL_UNDERLINE);
    6262    cucul_putstr(cv, 3 + 60, 20, "underline");
    6363
Note: See TracChangeset for help on using the changeset viewer.