![]() |
ubuntu.com - launchpad.net - ubuntu help
|
|
|||||||
|
Tutorials & Tips The place to find Ubuntu related Tips & Tricks. |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
First Cup of Ubuntu
![]() Join Date: Apr 2006
Beans: 5
Ubuntu 7.04 Feisty Fawn
|
HOWTO change the escape (command) keystroke for GNU Screen
One of the great programs every command line user should know about is GNU Screen, the terminal window manager. One small issue that effects some users of Screen is that the default escape key (C-a) is also the "beginning of line" keystroke in Emacs. This tutorial will explain how to configure the escape key in Screen. Note that the escape key is one of the many configurable parts of Screen. For a more complete guide, see the Screen man page or http://gentoo-wiki.com/TIP_Using_screen from the Gentoo wiki, from which this tutorial was drawn.
Screen reads configuration from the ~/.screenrc file (the file .screenrc in the users home directory). To configure the escape key, add the following line to this file (after creating the file, if it does not already exist): Code:
escape <escape key><meta key> Code:
escape ^`` Note: If one want to use the literal characters "^" or "\", you can escape them using "\". So to set the escape key to C-^ and the meta-key to \\, add Code:
escape ^\^\\ |
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|