randy3k / Terminus

Bring a real terminal to Sublime Text
https://packagecontrol.io/packages/Terminus
MIT License
1.37k stars 83 forks source link

Sublime Text 4 input error in Korean (Windows 10) #325

Open jhmin-dev opened 2 years ago

jhmin-dev commented 2 years ago

I know it sounds weird but it seems Terminus can't receive Korean input in ST 4(works fine in ST 3), Windows 10.

I made a directory "실험" and tried to cd to that directory. I can see "실험" on the command line before I hit return or double quotes, but it disappears as soon as I press the keys. As you see below, Copying with context menu or Ctrl+C, Ctrl+V still works fine in ST 4.

korinput

I reproduced this with latest portable version of ST 4(can't input) and ST 3(works fine). Only Package Control and Terminus are installed. Default shell seems not to matter since I experience the same problem in Ubuntu via WSL 2.

randy3k commented 2 years ago

Could you turn on the debug setting in Terminus settings and report the log of sublime condole?

jhmin-dev commented 2 years ago

tried:

cd Downloads dir cd 실험 cd "실험" cd 실험

(final line done with context menu)

log:

activating with offset 0
view size: (21, 82)
set recent view: 35
set recent view: 35
add 0 line(s) to scroll back history
screen is dirty: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20]
updating lines takes 0.003988027572631836s
mode: [7, 25], cursor: 0.0
receieved: Microsoft Windows [Version 10.0.19043.1288][?25l

(c) Microsoft Corporation. All rights reserved.



C:\Users\J>
[?25h
add 0 line(s) to scroll back history
screen is dirty: [0, 1, 2, 3]
updating lines takes 0.0010008811950683594s
mode: [7, 25], cursor: 47.1
receieved: [?25l

[?25h
updating lines takes 0.0009989738464355469s
mode: [7, 25], cursor: 11.3
reset cursor
sent: c
receieved: [?25l
C:\Users\J>c[?25h
add 0 line(s) to scroll back history
screen is dirty: [3]
updating lines takes 0.0009958744049072266s
mode: [7, 25], cursor: 12.3
sent: d
receieved: d
add 0 line(s) to scroll back history
screen is dirty: [3]
updating lines takes 0.002003192901611328s
mode: [7, 25], cursor: 13.3
sent:  
receieved: 
updating lines takes 0.0009930133819580078s
mode: [7, 25], cursor: 14.3
sent: D
receieved: [?25l
C:\Users\J>cd D[?25h
add 0 line(s) to scroll back history
screen is dirty: [3]
updating lines takes 0.0009989738464355469s
mode: [7, 25], cursor: 15.3
sent: o
receieved: o
add 0 line(s) to scroll back history
screen is dirty: [3]
updating lines takes 0.0010039806365966797s
mode: [7, 25], cursor: 16.3
sent: w
receieved: w
add 0 line(s) to scroll back history
screen is dirty: [3]
updating lines takes 0.0020411014556884766s
mode: [7, 25], cursor: 17.3
sent: n
receieved: n
add 0 line(s) to scroll back history
screen is dirty: [3]
updating lines takes 0.0009889602661132812s
mode: [7, 25], cursor: 18.3
sent: l
receieved: l
add 0 line(s) to scroll back history
screen is dirty: [3]
updating lines takes 0.0009999275207519531s
mode: [7, 25], cursor: 19.3
sent: o
receieved: o
add 0 line(s) to scroll back history
screen is dirty: [3]
updating lines takes 0.0s
mode: [7, 25], cursor: 20.3
sent: a
receieved: a
add 0 line(s) to scroll back history
screen is dirty: [3]
updating lines takes 0.0009751319885253906s
mode: [7, 25], cursor: 21.3
sent: d
receieved: d
add 0 line(s) to scroll back history
screen is dirty: [3]
updating lines takes 0.001989126205444336s
mode: [7, 25], cursor: 22.3
sent: s
receieved: s
add 0 line(s) to scroll back history
screen is dirty: [3]
updating lines takes 0.001010894775390625s
mode: [7, 25], cursor: 23.3
sent: 

receieved: [?25l



C:\Users\J\Downloads>[?25h
add 0 line(s) to scroll back history
screen is dirty: [4, 5]
updating lines takes 0.0010039806365966797s
mode: [7, 25], cursor: 21.5
sent: d
receieved: d
add 0 line(s) to scroll back history
screen is dirty: [5]
updating lines takes 0.0009970664978027344s
mode: [7, 25], cursor: 22.5
sent: i
receieved: i
add 0 line(s) to scroll back history
screen is dirty: [5]
updating lines takes 0.0019991397857666016s
mode: [7, 25], cursor: 23.5
sent: r
receieved: r
add 0 line(s) to scroll back history
screen is dirty: [5]
updating lines takes 0.0009980201721191406s
mode: [7, 25], cursor: 24.5
sent: 

receieved: [?25l

 C 드라이브의 볼륨: OS

 볼륨 일련 번호: 2A4E-5ACE



 C:\Users\J\Downloads 디렉터리



2021-10-30  오후 02:08    <DIR>          .

2021-10-30  오후 02:08    <DIR>          ..

2020-02-07  오후 03:24           649,673 KCI_FI002454750.pdf

2021-10-30  오후 02:08    <DIR>          Sublime Text Build 3211 x64

2021-10-30  오후 02:01        14,550,016 Sublime Text Build 3211 x64.zip

2021-10-30  오후 01:57    <DIR>          sublime_text_build_4121_x64

2021-10-30  오후 01:57        29,057,273 sublime_text_build_4121_x64.zip

2020-07-02  오후 04:08    <DIR>          Telegram Desktop

2021-10-30  오후 02:01    <DIR>          실험

               3개 파일          44,256,962 바이트

               6개 디렉터리  52,937,670,656 바이트 남음



C:\Users\J\Downloads>[?25h
add 3 line(s) to scroll back history
screen is dirty: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20]
updating lines takes 0.012012004852294922s
mode: [7, 25], cursor: 21.20
sent: c
receieved: c
add 0 line(s) to scroll back history
screen is dirty: [20]
updating lines takes 0.0009980201721191406s
mode: [7, 25], cursor: 22.20
sent: d
receieved: d
add 0 line(s) to scroll back history
screen is dirty: [20]
updating lines takes 0.0010039806365966797s
mode: [7, 25], cursor: 23.20
sent:  
receieved: 
updating lines takes 0.0s
mode: [7, 25], cursor: 24.20
sent: 

receieved: [?25l

[?25h
add 1 line(s) to scroll back history
screen is dirty: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20]
updating lines takes 0.008998870849609375s
mode: [7, 25], cursor: 0.20
receieved: C:\Users\J\Downloads[?25l



C:\Users\J\Downloads>[?25h
add 2 line(s) to scroll back history
screen is dirty: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20]
updating lines takes 0.009009122848510742s
mode: [7, 25], cursor: 21.20
sent: c
receieved: c
add 0 line(s) to scroll back history
screen is dirty: [20]
updating lines takes 0.0010380744934082031s
mode: [7, 25], cursor: 22.20
sent: d
receieved: d
add 0 line(s) to scroll back history
screen is dirty: [20]
updating lines takes 0.0010001659393310547s
mode: [7, 25], cursor: 23.20
sent:  
receieved: 
updating lines takes 0.0010099411010742188s
mode: [7, 25], cursor: 24.20
sent: "
receieved: [?25l
C:\Users\J\Downloads>cd "[?25h
add 0 line(s) to scroll back history
screen is dirty: [20]
updating lines takes 0.0029959678649902344s
mode: [7, 25], cursor: 25.20
sent: "
receieved: "
add 0 line(s) to scroll back history
screen is dirty: [20]
updating lines takes 0.0009598731994628906s
mode: [7, 25], cursor: 26.20
sent: 

receieved: [?25l

C:\Users\J\Downloads



C:\Users\J\Downloads>[?25h
add 3 line(s) to scroll back history
screen is dirty: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20]
updating lines takes 0.01099705696105957s
mode: [7, 25], cursor: 21.20
sent: c
receieved: c
add 0 line(s) to scroll back history
screen is dirty: [20]
updating lines takes 0.0010521411895751953s
mode: [7, 25], cursor: 22.20
sent: d
receieved: d
add 0 line(s) to scroll back history
screen is dirty: [20]
updating lines takes 0.0009980201721191406s
mode: [7, 25], cursor: 23.20
sent:  
receieved: 
updating lines takes 0.0s
mode: [7, 25], cursor: 24.20
sent: 실험
receieved: [?25l
C:\Users\J\Downloads>cd 실험[?25h
add 0 line(s) to scroll back history
screen is dirty: [20]
updating lines takes 0.0009989738464355469s
mode: [7, 25], cursor: 28.20
sent: 

receieved: [?25l



C:\Users\J\Downloads\실험>[?25h
add 2 line(s) to scroll back history
screen is dirty: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20]
updating lines takes 0.009984970092773438s
mode: [7, 25], cursor: 26.20
zishang520 commented 2 years ago

mark #309

nelvko commented 2 years ago

me too, input as chinese