Saturday, October 30, 2010

Screen, bash and ctrl+a

Today I was using bash and ctrl+a is very useful for going to the start of a command in bash. But it was not working in my Mac. I thouht it was a problem in Mac bindings and opened keyboard and mouse, terminal preferences etc.
When none of this could fix the issue, I realised that I was ssh'ing to my work machine and using a screen to avoid losing session when connection drops. This program uses ctrl+a as the meta key and was not passing this on to bash. So I had to use
screen -e ^xx

to change the meta key to ctrl+x and everything was fine again.

No comments: