Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to fix space instead of backspace in git bash

Tags:

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

like image 866
TheBAST Avatar asked Mar 03 '17 10:03

TheBAST


People also ask

How to enable backspace in PuTTY?

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.

How do I use arrow keys in Gitbash?

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.


1 Answers

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

like image 141
RockyRollinghills Avatar answered Sep 23 '22 11:09

RockyRollinghills