Site Tools


Differences

This shows you the differences between two versions of the page.

Link to this comparison view

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)
Line 1: Line 1:
 ====== 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.
  
Line 32: Line 33:
 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]].
Line 107: Line 108:
 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? ====
Line 113: Line 115:
 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'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'[[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''.

User Tools