-
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
Character persistence on cmder windows #506
Comments
me too |
1 similar comment
me too |
This error is not replicable for me |
Same here, struggling for at least 6 months, after windows 10 upgrade.
|
Having the same problem here in Windows 10 |
I have searched around again of any solution for this bug, and it's turned out that changing the {lambda} to proper ascii character will help (under cmder/config/cmder.lua). Check again #553. |
I can't reproduce this on my 1.3.0-pre can more people try it please. |
I'm still getting this error in the latest version. |
Have this error on latest version 161206 ... My system locale is Chinese (Simplified). Changing the lambda character in clink.lua file to an ascii one (like '>') worked and the error disappeared. When I changed my system locale back to English (US) (I'm based in China so I had it set to GBK Simplified Chinese), the lambda non-ascii works. |
same problem, replace all, just two lambda "λ" in file \cmder\vendor\clink.lua with "$", solved.
|
The new location seems to be function lambda_prompt_filter()
clink.prompt.value = string.gsub(clink.prompt.value, "{lamb}", "$")
end |
Same issue, locale is Chinese simplified. |
I am using the latest version of cmder (version 1.3.8). It seems that this old issue still persists. The
and replace it with
Restart cmder and the problem should disappear. |
@jdhao |
Still not working after updated 1.3.8 |
@hulucc I tried ver1.3.8 as new installation, yes, the bug still there, my solution: |
You guys keep calling this a bug but I can't reproduce it. If we can't reproduce it and you keep masking it by just changing it to If someone can find a root cause and tell us how to reproduce it might be looked at but until that happens no one on the Cmder team is trying to 'fix' it. |
If you do want to just mask it there are better ways than changing the clink.lua because this file is overwritten on upgrade. |
@daxgames it's very easy to reproduce. Change the system locale of your system to something like Chinese Simplified. Then open cmder and write a bunch of commands. Then try to use the 'up' key to view previous commands. That should reproduce the issue. It's probably something to do with the byte size of the lambda character in different encodings. |
@daxgames , I will try to elaborate my possibly-related settings for you to reproduce this bug. I am using Windows 10 Pro, Version 1803 and OS build 17134.345. My region is set as I am using Cmder version 1.3.8 with ConEmu 180626. My settings for
Please let me know if you need any further info. |
@Justsoos , You have to type long command (some say the command length must be longer than four ) to actually trigger this bug. Have you tried long commands? |
@Justsoos are you using the up arrow to cycle through history as others have mentioned? And then backspacing to the beginning of the line? |
@daxgames it is a complex story.... before update to 1.3.8, I run an 1.3.4 probably, have to |
An update on this issue, since I'm having it as well... For reference, I got that lambda from https://en.wikipedia.org/wiki/Lambda, and it is the |
I'm facing the same issue with v1.3.14 |
The only solution, sadly, is to change the character. |
@daxgames It is year 2020. Sadly, this issue still persists. If this issue is hard to fix, why not just change the default prompt character from lambda to something purely ASCII, for example, |
@jdhao it's not up to me. This is not my project I just help maintain it. Changing the prompt is user configurable by adding lua code to the config folder. You can change it to whatever you want one time and you will never have to change it again. |
This issue has been plaguing me in my git-for-windows bash shell. If the last item in my history was longer than 4 characters, the first character would stick. I noticed that a fresh install was not having this issue, so I went digging. I initially narrowed it down to my bash starting without the export LANG=$(exec /usr/bin/locale -uU) Manually running I'm not sure how this translates to those experiencing the issue with cmd, but it likely has something to do with locale options and perhaps something in |
If you find out you can't change Prompt symbol (lambda λ), here is one possible solution. v1.3.1
change
into
|
Or use UTF8 as the system code page. The problem is that CJK locales define some Unicode characters to be different widths than the standard says they should be. And also some fonts define the characters with different widths than the standard or CJK widths expect. Lambda happens to be one of the affected characters. |
Character persistence occurs when residual character of a previous command remains visible on the screen.
When press up-arrow key to view the last command, "mplayer" for example, the Command Window display is ok. See Fig1.
Subsequently press down-arrow key to change command history, some character remains visible on the CMDER windows.See Fig2.
It is very annoying. How to resolve the problem? Thanks.
It should be noted that the number of a command is less than or equal to 4,the phenomenon would not occur again.
Fig3 is font setting.
The text was updated successfully, but these errors were encountered: