[BACK]Return to cmd-refresh-client.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / tmux

Diff for /src/usr.bin/tmux/cmd-refresh-client.c between version 1.32 and 1.33

version 1.32, 2020/04/13 20:51:57 version 1.33, 2020/05/16 15:45:29
Line 34 
Line 34 
         .name = "refresh-client",          .name = "refresh-client",
         .alias = "refresh",          .alias = "refresh",
   
         .args = { "cC:DF:lLRSt:U", 0, 1 },          .args = { "cC:Df:F:lLRSt:U", 0, 1 },
         .usage = "[-cDlLRSU] [-C XxY] [-F flags] " CMD_TARGET_CLIENT_USAGE          .usage = "[-cDlLRSU] [-C XxY] [-f flags] " CMD_TARGET_CLIENT_USAGE
                 " [adjustment]",                  " [adjustment]",
   
         .flags = CMD_AFTERHOOK|CMD_CLIENT_TFLAG,          .flags = CMD_AFTERHOOK|CMD_CLIENT_TFLAG,
Line 50 
Line 50 
         struct tty      *tty = &tc->tty;          struct tty      *tty = &tc->tty;
         struct window   *w;          struct window   *w;
         const char      *size, *errstr;          const char      *size, *errstr;
         char            *copy, *next, *s;  
         u_int            x, y, adjust;          u_int            x, y, adjust;
   
         if (args_has(args, 'c') ||          if (args_has(args, 'c') ||
Line 108 
Line 107 
                 return (CMD_RETURN_NORMAL);                  return (CMD_RETURN_NORMAL);
         }          }
   
         if (args_has(args, 'C') || args_has(args, 'F')) {          if (args_has(args, 'F')) /* -F is an alias for -f */
                   server_client_set_flags(tc, args_get(args, 'F'));
           if (args_has(args, 'f'))
                   server_client_set_flags(tc, args_get(args, 'f'));
   
           if (args_has(args, 'C')) {
                 if (args_has(args, 'C')) {                  if (args_has(args, 'C')) {
                         if (!(tc->flags & CLIENT_CONTROL)) {                          if (!(tc->flags & CLIENT_CONTROL)) {
                                 cmdq_error(item, "not a control client");                                  cmdq_error(item, "not a control client");
Line 128 
Line 132 
                         tty_set_size(&tc->tty, x, y, 0, 0);                          tty_set_size(&tc->tty, x, y, 0, 0);
                         tc->flags |= CLIENT_SIZECHANGED;                          tc->flags |= CLIENT_SIZECHANGED;
                         recalculate_sizes();                          recalculate_sizes();
                 }  
                 if (args_has(args, 'F')) {  
                         if (!(tc->flags & CLIENT_CONTROL)) {  
                                 cmdq_error(item, "not a control client");  
                                 return (CMD_RETURN_ERROR);  
                         }  
                         s = copy = xstrdup(args_get(args, 'F'));  
                         while ((next = strsep(&s, ",")) != NULL) {  
                                 /* Unknown flags are ignored. */  
                                 if (strcmp(next, "no-output") == 0)  
                                         tc->flags |= CLIENT_CONTROL_NOOUTPUT;  
                         }  
                         free(copy);  
                 }                  }
                 return (CMD_RETURN_NORMAL);                  return (CMD_RETURN_NORMAL);
         }          }

Legend:
Removed from v.1.32  
changed lines
  Added in v.1.33