Changeset 1256 for libcaca/trunk/test/colors.c
- Timestamp:
- Oct 29, 2006, 9:35:46 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcaca/trunk/test/colors.c
r980 r1256 36 36 return 1; 37 37 38 cucul_set_ color(cv, CUCUL_COLOR_LIGHTGRAY, CUCUL_COLOR_BLACK);38 cucul_set_attr_ansi(cv, CUCUL_COLOR_LIGHTGRAY, CUCUL_COLOR_BLACK, 0); 39 39 cucul_clear_canvas(cv); 40 40 for(i = 0; i < 16; i++) 41 41 { 42 cucul_set_ color(cv, CUCUL_COLOR_LIGHTGRAY, CUCUL_COLOR_BLACK);42 cucul_set_attr_ansi(cv, CUCUL_COLOR_LIGHTGRAY, CUCUL_COLOR_BLACK, 0); 43 43 cucul_printf(cv, 4, i + (i >= 8 ? 4 : 3), "'%cv': %i (%s)", 44 44 'a' + i, i, cucul_get_color_name(i)); 45 45 for(j = 0; j < 16; j++) 46 46 { 47 cucul_set_ color(cv, i, j);47 cucul_set_attr_ansi(cv, i, j, 0); 48 48 cucul_putstr(cv, (j >= 8 ? 41 : 40) + j * 2, i + (i >= 8 ? 4 : 3), 49 49 "Aa");
Note: See TracChangeset
for help on using the changeset viewer.