New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

weird Ghost character for CJK User #1351

Open
ihipop opened this Issue Apr 19, 2017 · 6 comments

Comments

Projects
None yet
5 participants
@ihipop

ihipop commented Apr 19, 2017

I'm a CJK user.
Note that there is nothing before “git” when I press “↑” on keyboard
I keep press “↑” on keyboard to to get out another history command
“vagrant ssh”,then I press “↓” on keyboard to get“git” back.
You will see that there is a additional “v” fom “vagrant” before “git”
But it's actually a “git” there ,not “vgit”. the "v" character is just like a ghost

here is a screen record,I'm Using windows 10 (64 bit), with chinese language enabled, same issue on windows 7 (64 bit),with a clean install of cmder 1.3.2

22223

@Kisesy

This comment has been minimized.

Show comment
Hide comment
@Kisesy

Kisesy Apr 24, 2017

Open: Cmder\vendor\clink.lua
https://github.com/cmderdev/cmder/blob/master/vendor/clink.lua#L44
Change:

if env == nil then
    lambda = "$"
else
    lambda = "("..env..") $"
end

Kisesy commented Apr 24, 2017

Open: Cmder\vendor\clink.lua
https://github.com/cmderdev/cmder/blob/master/vendor/clink.lua#L44
Change:

if env == nil then
    lambda = "$"
else
    lambda = "("..env..") $"
end
@ihipop

This comment has been minimized.

Show comment
Hide comment
@ihipop

ihipop Apr 24, 2017

@Kisesy It works..
Why don't provide any settings to change this prompt ....

ihipop commented Apr 24, 2017

@Kisesy It works..
Why don't provide any settings to change this prompt ....

@clijiac

This comment has been minimized.

Show comment
Hide comment
@clijiac

clijiac Apr 27, 2017

add chcp utf-8

see #1339 (comment)

clijiac commented Apr 27, 2017

add chcp utf-8

see #1339 (comment)

@ihipop

This comment has been minimized.

Show comment
Hide comment
@ihipop

ihipop May 1, 2017

@clijiac it‘s not a utf-8 issue
I‘ve tried
run chcp 65001 won't work. and some programs such as vagrant won't work in utf-8 code page in Chinese env
change the prompt from λ to $ here work the best and cost the least.

ihipop commented May 1, 2017

@clijiac it‘s not a utf-8 issue
I‘ve tried
run chcp 65001 won't work. and some programs such as vagrant won't work in utf-8 code page in Chinese env
change the prompt from λ to $ here work the best and cost the least.

@jdhao

This comment has been minimized.

Show comment
Hide comment
@jdhao

jdhao Dec 29, 2017

I have met exactly the same issue. Following @Kisesy 's advice, it works. Go to where cmder is installed, e.g., D:Program Files, the clink.lua file is in vendor sub-directory.

jdhao commented Dec 29, 2017

I have met exactly the same issue. Following @Kisesy 's advice, it works. Go to where cmder is installed, e.g., D:Program Files, the clink.lua file is in vendor sub-directory.

@KB5201314

This comment has been minimized.

Show comment
Hide comment
@KB5201314

KB5201314 Jul 6, 2018

I have facing the same issue. I tested it on my Windows10 laptop, and this issue appear only when I add

chcp utf-8

to Cmder->Setting->environment

default

And I have also have downloaded the ConEmu to power my guess.
This issue doesn't appear in ConEmu.
It may be the mistake when calculating the length of character λ that lead to this issue.

KB5201314 commented Jul 6, 2018

I have facing the same issue. I tested it on my Windows10 laptop, and this issue appear only when I add

chcp utf-8

to Cmder->Setting->environment

default

And I have also have downloaded the ConEmu to power my guess.
This issue doesn't appear in ConEmu.
It may be the mistake when calculating the length of character λ that lead to this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment