chrisant996 / clink

Bash's powerful command line editing in cmd.exe
https://chrisant996.github.io/clink/
GNU General Public License v3.0
3.44k stars 135 forks source link

Not recieving 'a' key is down #661

Closed trevorchaney closed 3 weeks ago

trevorchaney commented 4 weeks ago

I'm not able to input the 'a' key by itself. It appears to blink but nothing is written to the terminal. I can press 'A' (shift+a) and that registers but not 'a' by itself. I don't know if there is something wrong with my configuration. I have 'clink', 'clink completion', and 'clink flex prompt' installed and they were working fine in the past. I have tried the following

I haven't done any configurations to clink other than running the flex prompt setup script

chrisant996 commented 4 weeks ago

It sounds like there's likely a syntax error in a custom key binding. But you said you haven't done any configuration in a .inputrc file.

Try running clink echo and then press a. What is printed on the screen after you do that? (Press Ctrl-C to exit from clink echo when finished.)

And then try pressing Alt-Shift-? followed by a. What is printed on the screen after you do that?

Also, try running clink info and look in the "inputrc" section for a file name with "(LOAD)" next to it. If there is one, then please share the contents of that file.

trevorchaney commented 3 weeks ago

Found that C:\Users\tlc.inputrc was loaded with a single line alias hello='echo "Hello, World!"'

Apologizes, I removed that file and everything works again. I think I was looking at another program and wasn't aware that was being loaded by clink.

Thanks for your assistance

chrisant996 commented 3 weeks ago

Ah, yes, the .inputrc file has a very specific and limited format. Shell commands cannot be inserted into that file, as it is not a shell script.

I'm glad it was fairly easy to track down!