Ignore:
Timestamp:
Apr 22, 2006, 9:06:59 PM (14 years ago)
Author:
Sam Hocevar
Message:
  • Disabled the foreground/background optimisation in the IRC export because it breaks on too many IRC clients.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/cucul/export.c

    r826 r840  
    408408            uint32_t ch = linechar[x];
    409409
     410#if 0
    410411            if(bg == prevbg)
    411412            {
     
    431432                    cur += sprintf(cur, "\x02\x02");
    432433            }
     434#else
     435            if(bg != prevbg || fg != prevfg)
     436            {
     437                cur += sprintf(cur, "\x03%d,%d", fg, bg);
     438                if(ch >= (uint32_t)'0' && ch <= (uint32_t)'9')
     439                    cur += sprintf(cur, "\x02\x02");
     440            }
     441#endif
    433442            *cur++ = ch & 0x7f;
    434443            prevfg = fg;
Note: See TracChangeset for help on using the changeset viewer.