Sahas
Sahas

Reputation: 11419

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

Upvotes: 6

Views: 3545

Answers (1)

Brian McKenna
Brian McKenna

Reputation: 46228

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.

Upvotes: 21

Related Questions