Maximus5 / cygwin-connector

https://conemu.github.io/ terminal connector for cygwin/msys
https://conemu.github.io/en/CygwinMsysConnector.html
Other
82 stars 5 forks source link

CJK is not handled properly #18

Open tete1030 opened 8 years ago

tete1030 commented 8 years ago

Hi, Thank you for your great work. I'm using ConEmu 161022[64] and conemu-cyg-64 0.7.4. I found some problems about CJK. Here are my tests. I created two test console, one using connector and the other not using it, and commands of them are: with connector:

set CHERE_INVOKING=1 & E:\cygwin64\bin\conemu-cyg-64.exe E:\cygwin64\bin\bash.exe --login -i -new_console:C:"E:\cygwin64\Cygwin.ico"

without connector:

set CHERE_INVOKING=1 & E:\cygwin64\bin\bash.exe --login -i -new_console:C:"E:\cygwin64\Cygwin.ico"

Test 1

Compress long strings to fit space is enabled

1 (Figure 1 and Figure 2)

Compress long strings to fit space is disabled

2 (Figure 3 and Figure 4)

The above test shows two problems. First, using of connector makes conemu or cygwin bash take width of a CJK character as only one space instead of two. You can see that in Figure 4 the "(Ssh Users)" string is properly wrapped to the next line while not in Figure 3. Second, when Compress long strings to fit space option is enabled, lines no need to be compressed is still compressed. This can be seen by compare Figure 2 against Figure 4. But this might be an issue of conemu not cyg-connector.

Test 2

3 (Figure 5)

The cause of this should be same as Test 1.

Test 3

  1. Input a string followed by two Chinese characters. 4
  2. Press backspace twice. 5
  3. further press backspace 7 times. 6
jakitliang commented 1 year ago

Yeah, it is the problem with ConEmu [ msys2 connector | cygwin connector ].

The connector Asia charater stick many charactor as one, when you place your cursor form “|你好" and press 1 time, your cursor position will goes to "你好 |", which is a wrong behavior.

The expected behavior shoud be "你|好", ^- Look at the cursor is here.

I tried those ways:

Nothing works. And Finally, I give up ConEmu and Cmder.

Such bad Emulators, I totally don't know why they choose.

Now 2023, time goes by, bugs never be fixed.