Is it possible to run a gnu screen within a gnu screen? I'm not sure how the key bindings would work. I need to log into a server that is already running a screen session, from a local screen session.

link|improve this question

feedback

3 Answers

up vote 1 down vote accepted

Or you just hit ctrl-a followed by another ctrl-a to actually send the ctrl-a to the nested screen instance.

link|improve this answer
1  
No, as RobM correctly notes, you must type ctrl-a a to send ctrl-a to the nested screen. – eldering Jul 11 '11 at 16:17
Yo dawg. I heard you like screens, so I put a ctrl-a in your ctrl-a so you can screen while you screen. – Phoenix Feb 15 at 17:46
feedback

If you clear the $STY environment variable, running screen will start a nested session.

You then have to send a literal ^a to the nested session before using any of your bindings. You can send a literla ^a by pressing ^a followed by a (plain).

So to create a new window in the nested session you would press ^a, a, c.

link|improve this answer
feedback

Yes, it is possible. You will need to redefine screen's escape character, e.g. set it to E when you call screen

screen -e^Eq
link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.