Ignore:
Timestamp:
Nov 24, 2006, 6:49:49 AM (14 years ago)
Author:
Sam Hocevar
Message:
  • Add support for doublewidth characters even if ncurses or SLang don't know about them.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/caca/driver_slang.c

    r1392 r1429  
    462462    SLsmg_write_string(buf);
    463463#else
    464     SLsmg_write_char(ch < 0x80 ? ch : ' ');
     464    if(ch < 0x80)
     465        SLsmg_write_char(ch)
     466    else if(cucul_utf32_is_fullwidth(ch))
     467        SLsmg_write_string("? ");
     468    else
     469        SLsmg_write_char('?');
    465470#endif
    466471}
Note: See TracChangeset for help on using the changeset viewer.