screen
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
screen [2021/03/16 05:22] – [Splitting windows] hc9 | screen [2021/03/16 21:34] – [Introduction] hc9 | ||
---|---|---|---|
Line 3: | Line 3: | ||
===== Introduction ===== | ===== Introduction ===== | ||
- | [[http:// | + | [[http:// |
In this tutorial '' | In this tutorial '' | ||
- | A Screen command is usually of the form **CTRL-a KEY**, i.e., you'll have to press the **CTRL** key along with a, followed by a generic KEY. (Screen' | + | A Screen command is usually of the form **CTRL-a KEY**, i.e., you'll have to press the **CTRL** key along with "a", followed by a generic KEY. (Screen' |
You'll need to be a [[http:// | You'll need to be a [[http:// | ||
- | If you want a screencast tutorial, type: | + | If you want a "screencast" |
- | "$ ttyplay / | + | '' |
on a terminal connected to SDF. | on a terminal connected to SDF. | ||
Line 66: | Line 66: | ||
===== Multiple sessions ===== | ===== Multiple sessions ===== | ||
- | It's possible to have various Screen sessions running, each one with their own set of windows open. If you started Screen by just typing screen, a new session is created. If you detach and type screen again, a new session will start. If you now type: | + | It's possible to have various Screen sessions running, each one with their own set of windows open. If you started Screen by just typing |
'' | '' | ||
Line 88: | Line 88: | ||
'' | '' | ||
- | where mysession is the name you want to give to your session (e.g., work). | + | where mysession is the name you want to give to your session (e.g., |
===== Splitting windows ===== | ===== Splitting windows ===== | ||
Line 170: | Line 170: | ||
===== .screenrc ===== | ===== .screenrc ===== | ||
- | As we previously saw, it is possible to customize Screen by writing settings in a file named .screenrc in your $HOME directory. We will now some useful Screen settings. | + | As we previously saw, it is possible to customize Screen by writing settings in a file named ".screenrc" |
=== Avoiding the startup message === | === Avoiding the startup message === | ||
Line 176: | Line 176: | ||
A full screen message with copyright and other stuff is usually displayed at startup. This can get annoying. In order to avoid it, you can put in your .screenrc the following: | A full screen message with copyright and other stuff is usually displayed at startup. This can get annoying. In order to avoid it, you can put in your .screenrc the following: | ||
- | | + | <file config .screenrc> |
+ | |||
+ | startup_message off | ||
+ | |||
+ | </ | ||
=== Keybindings === | === Keybindings === | ||
- | It's possible to bind keys so that when you type CTRL-a KEY Screen | + | It's possible to bind keys so that when you type **CTRL-a KEY** Screen |
- | | + | <file config .screenrc> |
+ | |||
+ | bind m screen -t mail 1 mutt | ||
+ | |||
+ | </ | ||
- | each time you'll type CTRL-a m a new window (named mail)with mutt will be created. Be careful: when you bind a key, you'll overwrite Screen' | + | each time you'll type **CTRL-a m** a new window (named |
===== Cheat sheet ===== | ===== Cheat sheet ===== |
screen.txt · Last modified: 2021/03/16 21:39 by hc9