Игорь Олемской — практические заметки по системному администрированию Linux CentOS

Change the escape keystrokes in screen (перепечатка)

Комментариев нет

One of my favorite (and most used) applications on any Linux machine is screen. Once you fire up a screen session, you can start something and keep it running indefinitely. Even if your internet connection drops or you accidentally close your terminal window, the screen session will remain open on the remote server.

Detaching from a screen session is done by pressing CTRL-A and then d (for detach). However, when I'm on my Mac, CTRL-A and CTRL-E send my cursor to the beginning and end of lines, respectively. Once I launch screen, I lose the CTRL-A functionality because screen thinks I'm trying to send it a command.

Luckily, this can be changed in your ~/.screenrc:

escape ^Ww

With this change, you can press CTRL-W, then press d, and you'll detach from the screen session. For all of the screen options, run man screen on your local machine or review the man page online.

©2010 Racker Hacker. All Rights Reserved.

.

Похожие записи:

  1. Switching between audible and visual bells in screen
  2. freebsd+screen+mc: read (subshell_pty…): Unknown error: 0 (0)
  3. Single boot Linux on an Intel Mac Mini
  4. How to change network card speed and duplex settings in ubuntu
  5. Директория весом в 1Гб

Комментировать