[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: action upon re-attach
From: |
Phil!Gregory |
Subject: |
Re: action upon re-attach |
Date: |
Sun, 19 Sep 2004 10:37:38 -0400 |
User-agent: |
Mutt/1.5.6+20040803i |
* John Davidorff Pell <address@hidden> [2004-09-19 00:31 -0700]:
> What I would like to do is create a new window, with a new shell in it,
> every time I re-attach.
You can accomplish this with a script that runs the two commands:
screen -X screen
screen -r
The problem is that the reattach will not go to the newly created window
on its own; it'll display the screen you last detached from, unless you
use -p to preselect a window. This might work:
WINDOW=newscreen.$$
screen -X screen -t $WINDOW
screen -r -p $WINDOW
but only if you don't have your shell changing window titles for you.
(Mine does.)
--
...computer contrarian of the first order... / http://aperiodic.net/phil/
PGP: 026A27F2 print: D200 5BDB FC4B B24A 9248 9F7A 4322 2D22 026A 27F2
--- --
Education is a better safeguard of liberty than a standing army.
-- Edward Everett
---- --- --