Skip to content
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

Closed
ihipop opened this issue Apr 19, 2017 · 8 comments
Closed

weird Ghost character for CJK User #1351

ihipop opened this issue Apr 19, 2017 · 8 comments

Comments

@ihipop
Copy link

@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
Copy link

@Kisesy 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
Copy link
Author

@ihipop ihipop commented Apr 24, 2017

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

@clijiac
Copy link

@clijiac clijiac commented Apr 27, 2017

add chcp utf-8

see #1339 (comment)

@ihipop
Copy link
Author

@ihipop 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
Copy link

@jdhao 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
Copy link

@KB5201314 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.

@jdhao
Copy link

@jdhao jdhao commented Nov 15, 2018

This issue still persists. Solution for the latest release of cmder (version 1.3.8) can be found here.

@stale
Copy link

@stale stale bot commented May 25, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in a week if no further activity occurs. Thank you for your contribution.

@ihipop ihipop closed this May 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
5 participants
You can’t perform that action at this time.