termio support of unicode.

This commit is contained in:
Renaud 2013-06-06 16:14:15 +08:00
parent 70dab2c8d8
commit 102618586f
1 changed files with 5 additions and 1 deletions

View File

@ -286,7 +286,11 @@ int ttputc( int c) {
#endif
#if V7 | USG | BSD
fputc(c, stdout);
char utf8[6];
int bytes;
bytes = unicode_to_utf8(c, utf8);
fwrite(utf8, 1, bytes, stdout);
#endif
return 0 ;
}