Both sides previous revision
Previous revision
Next revision
|
Previous revision
|
faq [2010-01-29 19:01] asciiphil More linkification. |
faq [2021-02-19 20:09] (current) asciiphil old revision restored (2018-11-20 17:38) |
====== FAQ ====== | ====== FAQ ====== |
| |
| |
==== How do I get screen to put things into my terminal's scrollback? ==== | ==== How do I get screen to put things into my terminal's scrollback? ==== |
| |
First off, it's recommended that you use ''screen'''s scrollback buffer instead. Since you can have multiple windows in a ''screen'' session, if you switch between those windows, your terminal scrollback will mix lines from all of those windows, but ''screen'' keeps separate scrollback buffers for each one. Just use ''[[commands:copy|C-a ESC]]'' or ''[[commands:copy|C-a []]'' to enter [[commands:copy]] mode. (See also the [[interface#xterm-style_scrolling|interface examples]] for a description of how to make ''xterm'''s keystrokes work on ''screen'' instead.) But if you do want scrollback in your terminal window (usually ''xterm''), read on. | First off, it's recommended that you use ''screen'''s scrollback buffer instead. Since you can have multiple windows in a ''screen'' session, if you switch between those windows, your terminal scrollback will mix lines from all of those windows, but ''screen'' keeps separate scrollback buffers for each one. Just use ''[[commands:copy|C-a ESC]]'' or ''[[commands:copy|C-a []]'' to enter [[commands:copy]] mode. (See also the [[interface#xterm-style_scrolling|interface examples]] for a description of how to make ''xterm'''s keystrokes work on ''screen'' instead.) But if you do want scrollback in your terminal window (usually ''xterm''), read on. |
| |
See the page on [[title examples]]. | See the page on [[title examples]]. |
| |
==== How do I set and use session names ==== | ==== How do I set and use session names? ==== |
| |
See the page on [[sessionnames]]. | See the page on [[sessionnames]]. |
You can patch gnome-terminal to become ''screen''-aware, after which ''screen'' windows appear as tabs in the terminal, and you can still attach and detach from the ''screen'' session. | You can patch gnome-terminal to become ''screen''-aware, after which ''screen'' windows appear as tabs in the terminal, and you can still attach and detach from the ''screen'' session. |
| |
Tutorial here: http://monia.wordpress.com/2006/08/31/integrating-gnome-terminal-and-screen/ | Deleted tutorial via wayback machine :https://web.archive.org/web/20100505231752/http://monia.wordpress.com:80/2006/08/31/integrating-gnome-terminal-and-screen/ |
| |
==== I have a nested screen session - how do I send screen commands to the inner screen? ==== | ==== I have a nested screen session - how do I send screen commands to the inner screen? ==== |
When your outer/local ''screen'' session appears to catch your escape character, you have two options to send the escape to the inner ''screen'' session: | When your outer/local ''screen'' session appears to catch your escape character, you have two options to send the escape to the inner ''screen'' session: |
| |
- (The quick-and-dirty method) When needed, tell the "outer" screen session to send a ''C-a'' to the inner session, with ''[[commands:meta|C-a a]]''. For example, if you want to send ''[[commands:screen|C-a c]]'' to the inner session, you would type ''C-a a c'' to the outer session. | - (The quick-and-dirty method) When needed, tell the "outer" screen session to send a ''C-a'' to the inner session, with ''[[commands:meta|C-a a]]''. For example, if you want to send ''[[commands:screen|C-a c]]'' to the inner session, you would type ''C-a a c'' to the outer session. For deeper nesting, just add more (middle) ''a'' keystrokes for each nested level. |
- (The sticky method) Change the [[commands:escape]] keystroke in one of the sessions, so they do not interfere. For instance, to change the inner session's meta character to, say, ''C-s'' (instead of ''C-a''), use "''[[commands:colon|C-a a :]] [[commands:escape]] ^ss''". Thereafter, use ''C-s'' for the inner ''screen'' session, instead of ''C-a''. | - (The sticky method) Change the [[commands:escape]] keystroke in one of the sessions, so they do not interfere. For instance, to change the inner session's [[commands:escape]] character to, say, ''C-s'' (instead of ''C-a''), use "''[[commands:colon|C-a a :]] [[commands:escape]] ^ss''". Thereafter, use ''C-s'' for the inner ''screen'' session, instead of ''C-a''. |
| |
| === Oops, my process is running but not in ''screen'' === |
| |
| On Linux, we've heard that [[https://github.com/nelhage/reptyr|reptyr]] will let you pull a process into ''screen'' (i.e. grab its controlling terminal). ''reptyr'' claims to be better than ''screenify''. |