How do I get the backspace and forward delete keys to work correctly?

  • In the Keyboard section of the Terminal Inspector:
    • Turn on the Delete key sends backspace option.
    • Map the forward delete key to the following string:
      \033[3~
  • Add the following line to your .profile:
    stty erase ˆH
    Since ˆH is a non-printable control character, the easiest way to do this is to execute the following command:
    echo -e "stty erase ˆH" >> ~/.profile
    Type the ˆH by pressing Control-V and Control-H.
  • Add the following line to your .inputrc:
    "\e[3~": delete-char
  • Apply changes by doing a source ~/.profile and a bind -f ~/.inputrc.

Very helpful! I found this information on this website. Thanks, desp!

Was this helpful? Buy me a coffee with Bitcoin! (What is this?)

Updating Adobe Flash Without Restarting Firefox

No reason for a Flash upgrade to shut down your entire browser, even if it claims so.It's 2015, and the love-hate relationship of the Web...… Continue reading

Reddit's Fail-Alien (or "Fail-ien?")

Published on January 15, 2015