screen-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: action upon re-attach


From: Michael Schroeder
Subject: Re: action upon re-attach
Date: Fri, 24 Sep 2004 16:17:28 +0200
User-agent: Mutt/1.4.2.1i

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);}




reply via email to

[Prev in Thread] Current Thread [Next in Thread]