Ignore:
Timestamp:
Oct 30, 2006, 3:41:16 PM (14 years ago)
Author:
Sam Hocevar
Message:
File:
1 edited

Legend:

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

    r1257 r1263  
    4141    {
    4242        cucul_set_attr(cv, cucul_ansi_to_attr(CUCUL_LIGHTGRAY, CUCUL_BLACK));
    43         cucul_printf(cv, 4, i + (i >= 8 ? 4 : 3), "'%cv': %i (%s)",
     43        cucul_printf(cv, 3, i + (i >= 8 ? 3 : 2), "'%cv': %i (%s)",
    4444                     'a' + i, i, cucul_get_color_name(i));
    4545        for(j = 0; j < 16; j++)
    4646        {
    4747            cucul_set_attr(cv, cucul_ansi_to_attr(i, j));
    48             cucul_putstr(cv, (j >= 8 ? 41 : 40) + j * 2, i + (i >= 8 ? 4 : 3),
     48            cucul_putstr(cv, (j >= 8 ? 40 : 39) + j * 2, i + (i >= 8 ? 3 : 2),
    4949                         "Aa");
    5050        }
    5151    }
     52
     53    cucul_set_attr(cv, cucul_ansi_to_attr(CUCUL_LIGHTGRAY, CUCUL_BLACK));
     54    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);
     56    cucul_putstr(cv, 3 + 8, 20, "bold");
     57    cucul_set_attr(cv, cucul_ansi_to_attr(CUCUL_LIGHTGRAY, CUCUL_BLACK) | CUCUL_BLINK);
     58    cucul_putstr(cv, 3 + 24, 20, "blink");
     59    cucul_set_attr(cv, cucul_ansi_to_attr(CUCUL_LIGHTGRAY, CUCUL_BLACK) | CUCUL_ITALICS);
     60    cucul_putstr(cv, 3 + 41, 20, "italics");
     61    cucul_set_attr(cv, cucul_ansi_to_attr(CUCUL_LIGHTGRAY, CUCUL_BLACK) | CUCUL_UNDERLINE);
     62    cucul_putstr(cv, 3 + 60, 20, "underline");
    5263
    5364    caca_refresh_display(dp);
Note: See TracChangeset for help on using the changeset viewer.