5

Possible Duplicate:
Shell: how to go to the beginning of line when you are inside a screen?

Normally to get to the beginning of a line in a terminal the command is Ctrl+a.

While using GNU screen the Ctrl+a is the escape sequence to enter a screen command.

Is there a default way to move to the beginning of a line while in screen?

rudolph9
  • 1,425

2 Answers2

8

The sequence to send a literal C-a is explained in the man page:

   C-a a       (meta)        Send the command character (C-a)  to  window.
                             See escape command.

so you should use C-a a.

So, if you have a screen inside the other (for example screen + ssh + screen) you should use that prescription multiple time, and in the case at hand it becomes C-a a a

enzotib
  • 51,661
  • Nice! I had always thought since Ctrl+(a a) switched screens that Ctrl+a a would do the same but the release of the Ctrl key after the initial a makes it perform the default action Ctrl+a when not in a screen. Thank you! – rudolph9 Feb 07 '12 at 20:46
1

Why not just configure (if it's required - does it work out of the box?) your home key so it works correctly. Here's a randomly googled reference

AD7six
  • 654