1

Every 5 to 20 minutes I need to retype

stty erase ^H

in the console because my backspace key randomly starts printing ^H instead of deleting characters. This is happening in git bash on a lenovo T410

Any help would be appreciated this is pretty annoying

vicg
  • 61

3 Answers3

1

Add the following line to your ~/.inputrc file (and restart the terminal of course):

"\e[3~": delete-char
Steven
  • 28,386
0

Adding this line to .bash_profile (or running it from within the terminal) solved the issue for me without needing to change any other parameters:

export TERM=xterm
assylias
  • 426
0

Some console utilities don't interpret the backspace character (^H) as a backspace and need a delete instead.

In this case, enabling the option 'Backspace sends delete' in the 'Mapped Keys' sub-category under 'Emulation' and 'Terminal' in the 'Session Options' should allow for the 'Backspace' key to function correctly without affecting how the command shell works.