Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

GNU Screen: Changing Global Key-binding

I've recently started using screen in remote sessions. One problem is that emacs doesn't recognize its C-a and I don't want to bind emacs C-a to something else, as I'm very used to it.

Google shows ways to change every keybinding individually using ~/.screenrc but not how to change a keybinding globally. I want all C-a to change to something else. Is that possible? What are my options?

Thanks for your answers

like image 838
Sahas Avatar asked Jan 18 '10 06:01

Sahas


1 Answers

You can change the escape combination via escape in .screenrc:

# Makes Control+b become the escape combination
escape ^Bb

You can also just use Ctrl + a a to pass a Ctrl + a to the child process. You get used to it after a while.

like image 121
Brian McKenna Avatar answered Nov 15 '22 12:11

Brian McKenna