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

Diff for /src/usr.bin/tmux/tty-keys.c between version 1.37 and 1.38

version 1.37, 2012/03/17 22:56:04 version 1.38, 2012/03/21 21:28:03
Line 686 
Line 686 
         char  tmp[64], *endptr;          char  tmp[64], *endptr;
   
         /*          /*
          * Secondary device attributes are \033[>a;b;c. We only request           * Primary device attributes are \033[?a;b and secondary are
          * attributes on xterm, so we only care about the middle values which           * \033[>a;b;c. We only request attributes on xterm, so we only care
          * is the xterm version.           * about the middle values which is the xterm version.
          */           */
   
         *size = 0;          *size = 0;
Line 702 
Line 702 
                 return (-1);                  return (-1);
         if (len == 2)          if (len == 2)
                 return (1);                  return (1);
         if (buf[2] != '>')          if (buf[2] != '>' && buf[2] != '?')
                 return (-1);                  return (-1);
         if (len == 3)          if (len == 3)
                 return (1);                  return (1);
Line 717 
Line 717 
                 return (-1);                  return (-1);
         tmp[i] = '\0';          tmp[i] = '\0';
         *size = 4 + i;          *size = 4 + i;
   
           /* Only secondary is of interest. */
           if (buf[2] != '>')
                   return (0);
   
         /* Convert version numbers. */          /* Convert version numbers. */
         a = strtoul(tmp, &endptr, 10);          a = strtoul(tmp, &endptr, 10);

Legend:
Removed from v.1.37  
changed lines
  Added in v.1.38