Re: screen inside of screen

Thorsten Kampe <[email protected]> Wed, 17 Mar 2004 17:36:47 +0100
Newsgroups gmane.comp.gnu.screen
Message-ID <[email protected]>
* Shane Hickey (2004-03-09 18:19 +0100)
> Jason White <[email protected]> [2004-03-09 10:47]:
>> You can send a literal ctrl-a by typing "ctrl-a a".
> 
> Yes, I understand that, but that doesn't do what I'm trying to
> accomplish, unless I'm bungling it.  Let's say I start an Xterm
> session on machine1.  My .bashrc on machine1 starts screen.

You should place it in .bash_profile as .bashrc is for *every*
interactive but not login shell.

> Then I ssh to machine2.  My .bashrc on machine2 also starts screen. 
> If I want to detach my screen from machine2 (so that it shows up as
> a detached screen whenever I ssh back into it), "ctrl-a a d"
> doesn't do this.  All it does is print "d".  I know that I can just
> detach the screen on machine1, but I'm detaching the local session.
>  So, if I reboot machine1, I lose this session and if I ssh into
> machine2 from another session, this screen doesn't show up.

Screen always sends the escape characters to the outermost screen
session. So the simplest way is to "logout of screen" with [Ctrl]+[D]
on machine1 if you ssh to machine2. Maybe different excape sequences 
on the both machines would help but this is no solution for me as I 
religiously try to keep my .screenrc (and all other important dotrcs) 
in sync on all the host I use.

Thorsten



 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
     http://groups.yahoo.com/group/gnu-screen/

<*> To unsubscribe from this group, send an email to:
     [email protected]

<*> Your use of Yahoo! Groups is subject to:
     http://docs.yahoo.com/info/terms/