-
Notifications
You must be signed in to change notification settings - Fork 2k
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
prompt is Garbled #1054
Comments
Seems that the replacement code can't handle non-ascii chars?
It works fine in a plain cmd window:
|
We currently do this: cwd = clink.get_cwd()
prompt = "\x1b[1;32;40m{cwd} {git}{hg} \n\x1b[1;30;40m{lamb} \x1b[0m"
new_value = string.gsub(prompt, "{cwd}", cwd)
clink.prompt.value = string.gsub(new_value, "{lamb}", "λ") So my reading is that we can't pass the output of CC: @mridgers (clink maintainer) |
May be the clink does not support non-ascii. |
I think it does (letting the cmd set the prompt and then handling it in clink works...), just that the string has to get encoded... No idea how that works :-/ |
So, a bit of debugging (to a ANSI encoded file) shows this:
If I interpete http://stackoverflow.com/a/14981670/1380673 and the unicode code points right, then
[Note, I have changed my codepage to utf8: So this looks like a problem in clink :-( |
I've taken that upstream: mridgers/clink#415 |
I can't reproduce: on my system with
|
Please try #1070 for a version which parses the original prompt. |
I also do not know why. tks for your efforts(#1070), and it's ok in my system. 2016-08-10 johnsmithcry 发件人:Jan Schulz [email protected] I can't reproduce: on my system with clink.prompt.value = clink.get_cwd() (not the last ()!) exactly the same happens: — |
good job!Thx~ |
According to this commit in clink, the encoding problem appears to have been fixed. If so, should the |
As shown below:
cmder ver is 1.3 in win7 64bit。
The text was updated successfully, but these errors were encountered: