This website works better with JavaScript.
Home
Help
Sign In
cacalabs
/
libcaca
mirror of
https://github.com/cacalabs/libcaca.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
7
Wiki
Activity
Browse Source
* Add support for doublewidth characters even if ncurses or SLang don't know
about them.
tags/v0.99.beta14
Sam Hocevar
sam
18 years ago
parent
66eebe567c
commit
519216afa2
2 changed files
with
12 additions
and
2 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+6
-1
caca/driver_ncurses.c
+6
-1
caca/driver_slang.c
+ 6
- 1
caca/driver_ncurses.c
View File
@@ -449,7 +449,12 @@ static void ncurses_write_utf32(uint32_t ch)
buf[bytes] = '\0';
addstr(buf);
#else
addch(ch < 0x80 ? ch : '?');
if(ch < 0x80)
addch(ch)
else if(cucul_utf32_is_fullwidth(ch))
addstr("? ");
else
addch('?');
#endif
}
+ 6
- 1
caca/driver_slang.c
View File
@@ -461,7 +461,12 @@ static void slang_write_utf32(uint32_t ch)
buf[bytes] = '\0';
SLsmg_write_string(buf);
#else
SLsmg_write_char(ch < 0x80 ? ch : ' ');
if(ch < 0x80)
SLsmg_write_char(ch)
else if(cucul_utf32_is_fullwidth(ch))
SLsmg_write_string("? ");
else
SLsmg_write_char('?');
#endif
}
Write
Preview
Loading…
Cancel
Save