In my git bash, I want to delete some characters by pressing backspace but When i do it. The backspace button will instead space what i type. How to fix this? I'm on windows 10
In the PuTTY Configuration window, on the left, under the Terminal category, click Keyboard. Then, on the right, under "The Backspace key", make sure Control-? (127) is selected, and then close the PuTTY Configuration window.
Press alt+space — it will bring window context menu. Press e , k — it will select Edit -> Mark menu option. Now you can move your text cursor around cmd.exe window with arrow keys.
Here's what worked for me. Click on the icon in the upper left of the terminal window. Select Options, then Terminal. Under Type, pick a different terminal. Restart the terminal and see if it works. For me, any of the XTerm worked; while VT220 and VT100 gave me the same backspace issue you mentioned. Changing these options changes c:\Users\.minttyrc, which can be edited directly too.
Side note: Even though backspace has your cursor moving ahead, it's probably backspacing correctly in the buffer. So typing dir<bs><bs><bs>ls<enter>
will look like dir ls
, but it should give you the results of ls
, not an error dir: cannot access 'ls'
.
Cheers, Craig
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With