screen
reads commands from several configuration files during startup, as described in the FILES section of the man page or the Customizing Screen section of the User's Manual (also available, if it's installed, by typing info screen
).
The files read are:
- The file named by the
$SYSSCREENRC
environment variable (this may or may not be enabled) /etc/screenrc
- The file named by the
$SCREENRC
environment variable` $HOME/.screenrc
(These interact and are searched in various ways that I don't entirely understand.)
In your particular case, based on the comments, the system on which you're running screen
happens to have a /etc/screenrc
file that contains an escape
command that overrides the default.
A digression: in my own $HOME/.screenrc
I have:
escape ^@^@
This sets the escape character to the null character, which can be entered by typing Ctrl-space. I find it easier to type, and less likely to conflict with other uses, than the default Ctrl-A. The only conflict I run into is the Emac set-mark-command
function, and for that it's easy enough to type it twice.