[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.129 and 1.130

version 1.129, 2020/05/16 14:18:39 version 1.130, 2020/05/16 14:30:17
Line 1070 
Line 1070 
                     ",");                      ",");
                 break;                  break;
         case 'M': /* mintty */          case 'M': /* mintty */
                 tty_add_features(&c->term_features,                  tty_default_features(&c->term_features, "mintty", 0);
                     "256,"  
                     "RGB,"  
                     "title",  
                     ",");  
                 break;                  break;
         case 'T': /* tmux */          case 'T': /* tmux */
                 tty_add_features(&c->term_features,                  tty_default_features(&c->term_features, "tmux", 0);
                     "256,"  
                     "RGB,"  
                     "ccolour,"  
                     "cstyle,"  
                     "overline,"  
                     "title,"  
                     "usstyle",  
                     ",");  
                 break;                  break;
         case 'U': /* rxvt-unicode */          case 'U': /* rxvt-unicode */
                 tty_add_features(&c->term_features,                  tty_default_features(&c->term_features, "rxvt-unicode", 0);
                     "256,"  
                     "title",  
                     ",");  
                 break;                  break;
         }          }
         log_debug("%s: received secondary DA %.*s", c->name, (int)*size, buf);          log_debug("%s: received secondary DA %.*s", c->name, (int)*size, buf);
Line 1112 
Line 1097 
 {  {
         struct client   *c = tty->client;          struct client   *c = tty->client;
         u_int            i;          u_int            i;
         char             tmp[64];          char             tmp[128];
   
         *size = 0;          *size = 0;
         if (tty->flags & TTY_HAVEXDA)          if (tty->flags & TTY_HAVEXDA)
Line 1150 
Line 1135 
         *size = 5 + i;          *size = 5 + i;
   
         /* Add terminal features. */          /* Add terminal features. */
         if (strncmp(tmp, "iTerm2 ", 7) == 0) {          if (strncmp(tmp, "iTerm2 ", 7) == 0)
                 tty_add_features(&c->term_features,                  tty_default_features(&c->term_features, "iTerm2", 0);
                     "256,"          else if (strncmp(tmp, "tmux ", 5) == 0)
                     "RGB,"                  tty_default_features(&c->term_features, "tmux", 0);
                     "clipboard,"          else if (strncmp(tmp, "XTerm(", 6) == 0)
                     "cstyle,"                  tty_default_features(&c->term_features, "xterm", 0);
                     "margins,"          else if (strncmp(tmp, "mintty ", 7) == 0)
                     "sync,"                  tty_default_features(&c->term_features, "mintty", 0);
                     "title",  
                     ",");  
         } else if (strncmp(tmp, "tmux ", 5) == 0) {  
                 tty_add_features(&c->term_features,  
                     "256,"  
                     "RGB,"  
                     "ccolour,"  
                     "cstyle,"  
                     "overline,"  
                     "title,"  
                     "usstyle",  
                     ",");  
         }  
         log_debug("%s: received extended DA %.*s", c->name, (int)*size, buf);          log_debug("%s: received extended DA %.*s", c->name, (int)*size, buf);
   
           free(c->term_type);
           c->term_type = xstrdup(tmp);
   
         tty_update_features(tty);          tty_update_features(tty);
         tty->flags |= TTY_HAVEXDA;          tty->flags |= TTY_HAVEXDA;

Legend:
Removed from v.1.129  
changed lines
  Added in v.1.130