screen-users
[Top][All Lists]
Advanced

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

Re: Two little features (and a bounty?)


From: Joe Zbiciak
Subject: Re: Two little features (and a bounty?)
Date: Fri, 25 Jul 2008 01:09:34 -0500

On Fri, Jul 25, 2008 at 1:06 AM, Joe Zbiciak <address@hidden> wrote:
>
> This may be a silly question, but how does "screen" decide that the
> attaching terminal supports capturing mouse events?  It could be that
> nano says it's interested, but screen thinks they're not available.
>
> I'm no expert in the screen code base, but is this where?
>
>   if (InStr(D_termname, "xterm") || InStr(D_termname, "rxvt"))
>       D_CXT = 1;

I should add that I say this due to this code elsewhere:

void
MouseMode(mode)
int mode;
{
  if (display && D_mouse != mode)
    {
      char mousebuf[20];
      if (!D_CXT)
        return;
      if (D_mouse)
        {
          sprintf(mousebuf, "\033[?%dl", D_mouse);
          AddStr(mousebuf);
        }
      if (mode)
        {
          sprintf(mousebuf, "\033[?%dh", mode);
          AddStr(mousebuf);
        }
      D_mouse = mode;
    }
}


--
We sell spatulas, and that's all!
http://spatula-city.org/~im14u2c/
http://spacepatrol.info/




reply via email to

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