Ignore:
Timestamp:
Nov 24, 2006, 6:49:49 AM (13 years ago)
Author:
Sam Hocevar
Message:
  • Add support for doublewidth characters even if ncurses or SLang don't know about them.
Location:
libcaca/trunk/caca
Files:
2 edited

Legend:

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

    r1392 r1429  
    450450    addstr(buf);
    451451#else
    452     addch(ch < 0x80 ? ch : '?');
     452    if(ch < 0x80)
     453        addch(ch)
     454    else if(cucul_utf32_is_fullwidth(ch))
     455        addstr("? ");
     456    else
     457        addch('?');
    453458#endif
    454459}
  • 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.