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

Diff for /src/usr.bin/tmux/format.c between version 1.114 and 1.115

version 1.114, 2017/01/09 21:03:25 version 1.115, 2017/01/11 16:09:57
Line 1119 
Line 1119 
 {  {
         struct session  *s;          struct session  *s;
         const char      *name;          const char      *name;
           struct tty      *tty = &c->tty;
           const char      *types[] = TTY_TYPES;
   
         if (ft->s == NULL)          if (ft->s == NULL)
                 ft->s = c->session;                  ft->s = c->session;
   
         format_add(ft, "client_pid", "%ld", (long) c->pid);          format_add(ft, "client_pid", "%ld", (long) c->pid);
         format_add(ft, "client_height", "%u", c->tty.sy);          format_add(ft, "client_height", "%u", tty->sy);
         format_add(ft, "client_width", "%u", c->tty.sx);          format_add(ft, "client_width", "%u", tty->sx);
         if (c->tty.path != NULL)          if (tty->path != NULL)
                 format_add(ft, "client_tty", "%s", c->tty.path);                  format_add(ft, "client_tty", "%s", tty->path);
         if (c->tty.termname != NULL)  
                 format_add(ft, "client_termname", "%s", c->tty.termname);  
         format_add(ft, "client_control_mode", "%d",          format_add(ft, "client_control_mode", "%d",
                 !!(c->flags & CLIENT_CONTROL));                  !!(c->flags & CLIENT_CONTROL));
   
           if (tty->term_name != NULL)
                   format_add(ft, "client_termname", "%s", tty->term_name);
           if (tty->term_name != NULL)
                   format_add(ft, "client_termtype", "%s", types[tty->term_type]);
   
         format_add_tv(ft, "client_created", &c->creation_time);          format_add_tv(ft, "client_created", &c->creation_time);
         format_add_tv(ft, "client_activity", &c->activity_time);          format_add_tv(ft, "client_activity", &c->activity_time);
   
Line 1143 
Line 1148 
                 format_add(ft, "client_prefix", "%d", 1);                  format_add(ft, "client_prefix", "%d", 1);
         format_add(ft, "client_key_table", "%s", c->keytable->name);          format_add(ft, "client_key_table", "%s", c->keytable->name);
   
         if (c->tty.flags & TTY_UTF8)          if (tty->flags & TTY_UTF8)
                 format_add(ft, "client_utf8", "%d", 1);                  format_add(ft, "client_utf8", "%d", 1);
         else          else
                 format_add(ft, "client_utf8", "%d", 0);                  format_add(ft, "client_utf8", "%d", 0);

Legend:
Removed from v.1.114  
changed lines
  Added in v.1.115