-
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
Can't type backslash (clink issue) #89
Comments
I have the same issue. I don't know what clink is though? |
Issue is closed upstream. |
Is this issue still not fixed (the link to code.google is dead)? I can't type backslash, but i can copy it from another window and paste it in Cmder. I have tried the suggestion here, but that will not help 😒 |
I type back slashes every day. |
Please share your .inputrc file. There is almost certainly a typo in a key binding there. |
Now i know what the problem is. I use OSK (On-Screen Keyboard) and that seems to cause this problem. Where should i open an issue for this problem, Cmder or Clink? |
Open a new issue in https://github.com/chrisant996/clink/issues. If it turns out to be not related to Clink, then you can open an new issue elsewhere. Here are some thoughts, though: For me, Backslash works fine from the Windows On-Screen Keyboard with Clink in Windows Terminal, ConEmu, Cmder, and the legacy default console host. I'm using Windows 10. Try this -- it will show whether Clink is receiving the right input signals from the operating system and/or ConEmu:
Also:
It could still be useful to share your |
What keyboard layout do you use? It seems that you use american keyboard layout. I need to use AltGr to get the backslash.
I don't even know where that file is located. Why should something be wrong in that file after installing Cmder? I noticed this problem after 10 minutes of using Cmder and i haven't change anything. |
@Sopor I need to know your keyboard layout. Based on your github profile, I'm guessing maybe it's the "Svenska (Swedish)" keyboard layout. And I'm able to reproduce the issue using that keyboard layout. When I run Both say the Left Ctrl and Right Alt keys are pressed. I'll investigate this more and look for a solution that doesn't have too many drawbacks.
Great, thanks. Now that I know your keyboard layout and how you're reproducing the issue, I can investigate on my own without needing to ask further questions.
The .inputrc file is used by various Linux programs, and sometimes there are unexpected stray copies around that came from something else. So it's a question I have to ask as part of the troubleshooting process. I had no way to know that you hadn't created an inputrc file or that you just now installed Cmder, so asking the question was an important step. Questions may seem dumb, but they're necessary to find out more about the situation. The more information available in an initial problem report, the fewer questions need to be asked while troubleshooting. Running |
(Oh, also, Windows Terminal is not correctly supporting Ctrl-Alt substitute for AltGr right now, at least when switching keyboard layouts on the fly with Win-Space. That was making it extra confusing, at first, to debug what was going wrong.) |
AltGr should be the same as pressing CTRL and ALT. I did try both ways in Cmder, but none of them worked. |
This comment was marked as off-topic.
This comment was marked as off-topic.
|
They're intended to behave the same. But at the low level inside the OS, they are definitely not the same, which is why sometimes there are problems with the AltGr substitute handling in various programs (Windows Terminal has had problems off and on with it, and Clink has had various problems with it, and so have many other programs). Anyway, I'm working on a solution. I'll use the issue in the Clink repo for further updates. |
Fixed in Clink v1.4.28. |
That was a quick fix, nice! 👍 @chrisant996 Shouldn't there be a message telling the user to restart Cmder if that is necessary to apply the update? |
Can you describe more specifically about "I was forced to restart Cmder"? Do you just mean that to use the updated Clink you had to open a new tab in Cmder?
"Restart Cmder" isn't necessary to apply the update. What "forced" a restart? Also, Clink can't really predict which things (or how many) you might have open that are running CMD.exe instances. I don't understand what is meant by "forced to restart Cmder", so I don't know how to respond other than to ask for clarification. |
When i read that you had fixed the issue with backslash i started Cmder and updated it by running After the update there was no message telling me that i should restart Cmder and therefore i thought i could continue and that the backslash now should work, but when tried to type backslash it didn't worked. So, i closed the Cmder window and opened it again and now i could type the backslash. |
Perhaps it might make sense for |
From Sopor:
I see. What's a little unusual about Clink is that it doesn't force you to close everything first (there are important technical reasons, as well as functional reason, but that gets into a long topic). But when updating any software, you don't get the results of the update in any instances that are already running. That's universal in computing.
You didn't need to close Cmder. You could have opened a new tab. That's part of what I mean about "nothing forces restarting Cmder". You don't have to restart ConEmu (the Cmder frame window). And you don't need to restart cmd.exe tabs/windows/etc unless you absolutely need something in the update. It would be misleading to say "you must restart all terminal hosts and integrated development environments and anything else that might be using cmd.exe". I don't want to get sucked into trying to explain all that context and what's required and what isn't, all in a one-sentence message added on to the existing output from From daxgames:
That wouldn't be accurate. Restarting terminals hosting bash or powershell or cmd-without-clink is unnecessary. Even restarting cmd.exe instances that do have clink installed isn't "necessary" after updating -- it's only necessary if you want to immediately experience the updates. Also, the more documentation is printed on every What I Can ConsiderI can consider adding more output from |
If i close and re-open Cmder or open a new Cmder window is the same thing in my opinion. What i wanted to say with my comment was that when i didn't get any message that i needed to open a new Cmder window i assumed everything should work after an update (the issue was fixed and it should work in the window that was already open). I have been using computers since the 80s and nothing is obvious. There are not two developers that are thinking the same thing and it is impossible to know how they are thinking. You can do as you like. Now i know how it works when i do an update 🙂 |
If someone only has one tab open, then they're close to being the same. But what if someone has 5 tabs open in Cmder with PowerShell, and 1 tab with CMD+clink? Closing Cmder is not the same as closing 1 tab. |
You can't create backslashes
\
with clink enabled.One way to fix this is to create a clink_inputrc file in /settings containing
M-\: "\\"
This will unbind "delete_horz_space" though.
Clink issue: https://code.google.com/p/clink/issues/detail?id=138
The text was updated successfully, but these errors were encountered: