Sunday, December 29, 2013

Fighting with screen and backspace

When using Mac OS and ssh-ing into a Linux box (I got a small Synology server @home), you might have encountered the issue, that on the Linux machine, the backspace key is not working properly.
Well, for me, it worked nicely - except using screen sessions - here it sent DEL (delete) commands instead of backspace (erase).
It took me quite a while to figure this bastard out: First, I thought, there's something wrong with my Linux box (login shell) or the screen config. However, it turned out it was the Mac OS terminal that did not send the proper code.

Fix: go to your Mac OS terminal preferences -> Settings -> Advanced and enable "Delete sends Control-H"

Done! For now …