chjj / term.js

A terminal written in javascript.
MIT License
1.55k stars 337 forks source link

a bug about double-width CJK character display #96

Open codehz opened 9 years ago

codehz commented 9 years ago

If it is fixed-width, it will incorrectly wrap (which line containing CJK characters), or it will be longer than under normal line. I think that it should take two characters, or cutting trailing spaces. There are many programs can output these characters correctly, such as clang, it requires a terminal with an appropriate font (the width of the CJK characters exactly twice the general character width font) image

codehz commented 9 years ago

image I think it can be corrent position,but this line longer than others

yoshiokatsuneo commented 8 years ago

I made a pull-request that support CJK languages. https://github.com/chjj/term.js/pull/97