From: Michael Schroeder <address@hidden>
Date: 24 September 2004 07:17:28 GMT-07:00
To: John Davidorff Pell <address@hidden>
Cc: Screen <address@hidden>, Tom Huckstep
<address@hidden>, Kyle Thomas Miller <address@hidden>
Subject: Re: action upon re-attach
On Fri, Sep 24, 2004 at 02:18:40AM -0700, John Davidorff Pell wrote:
Anyone out there want to offer some tips... or code? :-D
Creating new windows when attaching is not hard, the next screen
version will support it if you use '-p +'. Here's the part of
the code:
socket.c, in FinishAttach:
if (*m->m.attach.preselect)
{
if (!strcmp(m->m.attach.preselect, "="))
fore = 0;
else if (!strcmp(m->m.attach.preselect, "-"))
{
fore = 0;
noshowwin = 1;
}
else if (!strcmp(m->m.attach.preselect, "+"))
{
struct action newscreen;
char *na = 0;
newscreen.nr = RC_SCREEN;
newscreen.args = &na;
DoAction(&newscreen, -1);
}
else
fore = FindNiceWindow(fore, m->m.attach.preselect);
}
else
fore = FindNiceWindow(fore, 0);
Cheers,
Michael.
--
Michael Schroeder address@hidden
main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);}