You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when input chinese simplified, the single character in chinese is doublewidthcharacter, then write one chinese char the X will plus 2, length be take as 2 also
but before write will read chinese as length 1. it lead to something wrong.
Example A. chinese
myTeriminalWidth = 3.
the server return “简 体”, notice ,there is blank in middle, so the length is 5=2+1+2;
then will read "简 体“,because read did not consider as length 2, in fact I think it should read "间 ” 3=2+1.
Example B.english is ok
myTeriminalWidth = 3.
the server return “abcde”, the length is 5;
then will read "abc“.
jediterm/terminal/src/com/jediterm/terminal/util/CharUtils.java
Lines 33 to 51 in 0f752eb
jediterm/terminal/src/com/jediterm/terminal/emulator/JediEmulator.java
Lines 82 to 84 in 0f752eb
when input chinese simplified, the single character in chinese is doublewidthcharacter, then write one chinese char the X will plus 2, length be take as 2 also
jediterm/terminal/src/com/jediterm/terminal/emulator/JediEmulator.java
Line 84 in 0f752eb
but before write will read chinese as length 1. it lead to something wrong.
Example A. chinese
myTeriminalWidth = 3.
the server return “简 体”, notice ,there is blank in middle, so the length is 5=2+1+2;
then will read "简 体“,because read did not consider as length 2, in fact I think it should read "间 ” 3=2+1.
Example B.english is ok
myTeriminalWidth = 3.
the server return “abcde”, the length is 5;
then will read "abc“.
as a result of
I think may can fix in twodifferent place
jediterm/terminal/src/com/jediterm/terminal/ArrayTerminalDataStream.java
Lines 57 to 64 in 0f752eb
jediterm/terminal/src/com/jediterm/terminal/util/CharUtils.java
Lines 33 to 51 in 0f752eb
my simple solution
The text was updated successfully, but these errors were encountered: