Ignore:
Timestamp:
Oct 29, 2006, 1:53:46 AM (14 years ago)
Author:
Sam Hocevar
Message:
  • Use the LSB of alpha and blue components to encode additional flags such as bold or underline. No higher level support for these yet, but at least everything is consistent.
  • Created cucul_set_attr_ansi() and cucul_set_attr_argb() which are bound to replace cucul_set_color() and cucul_set_truecolor().
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/caca/caca0.h

    r1015 r1254  
    131131
    132132#define caca_set_color(x, y) \
    133     (__caca0_fg = (x), __caca0_bg = (y), cucul_set_color(__caca0_cv, x, y))
     133    (__caca0_fg = (x), __caca0_bg = (y), \
     134     cucul_set_attr_ansi(__caca0_cv, x, y, 0))
    134135#define caca_get_fg_color() __caca0_fg
    135136#define caca_get_bg_color() __caca0_bg
Note: See TracChangeset for help on using the changeset viewer.