[BACK]Return to input-keys.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / tmux

Diff for /src/usr.bin/tmux/input-keys.c between version 1.49 and 1.50

version 1.49, 2015/11/16 22:57:51 version 1.50, 2015/11/23 20:53:09
Line 243 
Line 243 
          * is because an old style mouse release event cannot be converted into           * is because an old style mouse release event cannot be converted into
          * the new SGR format, since the released button is unknown). Otherwise           * the new SGR format, since the released button is unknown). Otherwise
          * pretend that tmux doesn't speak this extension, and fall back to the           * pretend that tmux doesn't speak this extension, and fall back to the
          * UTF-8 (1005) extension if the application requested, or to the  
          * legacy format.           * legacy format.
          */           */
         if (m->sgr_type != ' ' && (wp->screen->mode & MODE_MOUSE_SGR)) {          if (m->sgr_type != ' ' && (wp->screen->mode & MODE_MOUSE_SGR)) {
                 len = xsnprintf(buf, sizeof buf, "\033[<%u;%u;%u%c",                  len = xsnprintf(buf, sizeof buf, "\033[<%u;%u;%u%c",
                     m->sgr_b, x + 1, y + 1, m->sgr_type);                      m->sgr_b, x + 1, y + 1, m->sgr_type);
         } else if (wp->screen->mode & MODE_MOUSE_UTF8) {  
                 len = xsnprintf(buf, sizeof buf, "\033[M");  
                 len += utf8_split2(m->b + 32, &buf[len]);  
                 len += utf8_split2(x + 33, &buf[len]);  
                 len += utf8_split2(y + 33, &buf[len]);  
         } else {          } else {
                 if (m->b > 223)                  if (m->b > 223)
                         return;                          return;

Legend:
Removed from v.1.49  
changed lines
  Added in v.1.50