term.js icon indicating copy to clipboard operation
term.js copied to clipboard

a bug about double-width CJK character display

Open codehz opened this issue 9 years ago • 2 comments

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 avatar Nov 04 '15 09:11 codehz

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

codehz avatar Nov 04 '15 10:11 codehz

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

yoshiokatsuneo avatar Nov 09 '15 08:11 yoshiokatsuneo