How to make iterm2 send Control-H for backspace so it works for all Linux shells

StackOverflow https://stackoverflow.com/questions/13017392

  •  13-07-2021
  •  | 
  •  

سؤال

I had some problems with Terminal.app in OSX when my backspace key didn't have backspace behaviour. Basically, pressing backspace caused a delete instead. In Terminal you can fix this by going to Preferences/Settings/Advanced and ticking 'Delete sends Control-H' which works on all the servers that I SSH into.

I have now shifted to iTerm2 How do I do the same thing on iTerm2?

Many thanks.

هل كانت مفيدة؟

المحلول

Ok, fixed already sorry! For anyone else who needs this:

iTerm2 -> Preferences -> Keys -> Key Mappings -> click on the + symbol  
-> Click to Set -> press backspace -> select 'Send ^H Backspace'
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top