term.js
term.js copied to clipboard
a bug about double-width CJK character display
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)
I think it can be corrent position,but this line longer than others
I made a pull-request that support CJK languages. https://github.com/chjj/term.js/pull/97