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

Diff for /src/usr.bin/tmux/options-table.c between version 1.42 and 1.43

version 1.42, 2013/10/10 12:26:36 version 1.43, 2014/01/28 23:07:09
Line 196 
Line 196 
   
         { .name = "message-attr",          { .name = "message-attr",
           .type = OPTIONS_TABLE_ATTRIBUTES,            .type = OPTIONS_TABLE_ATTRIBUTES,
           .default_num = 0            .default_num = 0,
             .style = "message-style"
         },          },
   
         { .name = "message-bg",          { .name = "message-bg",
           .type = OPTIONS_TABLE_COLOUR,            .type = OPTIONS_TABLE_COLOUR,
           .default_num = 3            .default_num = 3,
             .style = "message-style"
         },          },
   
         { .name = "message-command-attr",          { .name = "message-command-attr",
           .type = OPTIONS_TABLE_ATTRIBUTES,            .type = OPTIONS_TABLE_ATTRIBUTES,
           .default_num = 0            .default_num = 0,
             .style = "message-command-style"
         },          },
   
         { .name = "message-command-bg",          { .name = "message-command-bg",
           .type = OPTIONS_TABLE_COLOUR,            .type = OPTIONS_TABLE_COLOUR,
           .default_num = 0            .default_num = 0,
             .style = "message-command-style"
         },          },
   
         { .name = "message-command-fg",          { .name = "message-command-fg",
           .type = OPTIONS_TABLE_COLOUR,            .type = OPTIONS_TABLE_COLOUR,
           .default_num = 3            .default_num = 3,
             .style = "message-command-style"
         },          },
   
           { .name = "message-command-style",
             .type = OPTIONS_TABLE_STYLE,
             .default_str = "bg=black,fg=yellow"
           },
   
         { .name = "message-fg",          { .name = "message-fg",
           .type = OPTIONS_TABLE_COLOUR,            .type = OPTIONS_TABLE_COLOUR,
           .default_num = 0            .default_num = 0,
             .style = "message-style"
         },          },
   
         { .name = "message-limit",          { .name = "message-limit",
Line 231 
Line 242 
           .default_num = 20            .default_num = 20
         },          },
   
           { .name = "message-style",
             .type = OPTIONS_TABLE_STYLE,
             .default_str = "bg=yellow,fg=black"
           },
   
         { .name = "mouse-resize-pane",          { .name = "mouse-resize-pane",
           .type = OPTIONS_TABLE_FLAG,            .type = OPTIONS_TABLE_FLAG,
           .default_num = 0            .default_num = 0
Line 253 
Line 269 
   
         { .name = "pane-active-border-bg",          { .name = "pane-active-border-bg",
           .type = OPTIONS_TABLE_COLOUR,            .type = OPTIONS_TABLE_COLOUR,
           .default_num = 8            .default_num = 8,
             .style = "pane-active-border-style"
         },          },
   
         { .name = "pane-active-border-fg",          { .name = "pane-active-border-fg",
           .type = OPTIONS_TABLE_COLOUR,            .type = OPTIONS_TABLE_COLOUR,
           .default_num = 2            .default_num = 2,
             .style = "pane-active-border-style"
         },          },
   
           { .name = "pane-active-border-style",
             .type = OPTIONS_TABLE_STYLE,
             .default_str = "fg=green"
           },
   
         { .name = "pane-border-bg",          { .name = "pane-border-bg",
           .type = OPTIONS_TABLE_COLOUR,            .type = OPTIONS_TABLE_COLOUR,
           .default_num = 8            .default_num = 8,
             .style = "pane-border-style"
         },          },
   
         { .name = "pane-border-fg",          { .name = "pane-border-fg",
           .type = OPTIONS_TABLE_COLOUR,            .type = OPTIONS_TABLE_COLOUR,
           .default_num = 8            .default_num = 8,
             .style = "pane-border-style"
         },          },
   
           { .name = "pane-border-style",
             .type = OPTIONS_TABLE_STYLE,
             .default_str = "default"
           },
   
         { .name = "prefix",          { .name = "prefix",
           .type = OPTIONS_TABLE_KEY,            .type = OPTIONS_TABLE_KEY,
           .default_num = '\002',            .default_num = '\002',
Line 315 
Line 345 
   
         { .name = "status-attr",          { .name = "status-attr",
           .type = OPTIONS_TABLE_ATTRIBUTES,            .type = OPTIONS_TABLE_ATTRIBUTES,
           .default_num = 0            .default_num = 0,
             .style = "status-style"
         },          },
   
         { .name = "status-bg",          { .name = "status-bg",
           .type = OPTIONS_TABLE_COLOUR,            .type = OPTIONS_TABLE_COLOUR,
           .default_num = 2            .default_num = 2,
             .style = "status-style"
         },          },
   
         { .name = "status-fg",          { .name = "status-fg",
           .type = OPTIONS_TABLE_COLOUR,            .type = OPTIONS_TABLE_COLOUR,
           .default_num = 0            .default_num = 0,
             .style = "status-style"
         },          },
   
         { .name = "status-interval",          { .name = "status-interval",
Line 354 
Line 387 
   
         { .name = "status-left-attr",          { .name = "status-left-attr",
           .type = OPTIONS_TABLE_ATTRIBUTES,            .type = OPTIONS_TABLE_ATTRIBUTES,
           .default_num = 0            .default_num = 0,
             .style = "status-left-style"
         },          },
   
         { .name = "status-left-bg",          { .name = "status-left-bg",
           .type = OPTIONS_TABLE_COLOUR,            .type = OPTIONS_TABLE_COLOUR,
           .default_num = 8            .default_num = 8,
             .style = "status-left-style"
         },          },
   
         { .name = "status-left-fg",          { .name = "status-left-fg",
           .type = OPTIONS_TABLE_COLOUR,            .type = OPTIONS_TABLE_COLOUR,
           .default_num = 8            .default_num = 8,
             .style = "status-left-style"
         },          },
   
         { .name = "status-left-length",          { .name = "status-left-length",
Line 374 
Line 410 
           .default_num = 10            .default_num = 10
         },          },
   
           { .name = "status-left-style",
             .type = OPTIONS_TABLE_STYLE,
             .default_str = "default"
           },
   
         { .name = "status-position",          { .name = "status-position",
           .type = OPTIONS_TABLE_CHOICE,            .type = OPTIONS_TABLE_CHOICE,
           .choices = options_table_status_position_list,            .choices = options_table_status_position_list,
Line 387 
Line 428 
   
         { .name = "status-right-attr",          { .name = "status-right-attr",
           .type = OPTIONS_TABLE_ATTRIBUTES,            .type = OPTIONS_TABLE_ATTRIBUTES,
           .default_num = 0            .default_num = 0,
             .style = "status-right-style"
         },          },
   
         { .name = "status-right-bg",          { .name = "status-right-bg",
           .type = OPTIONS_TABLE_COLOUR,            .type = OPTIONS_TABLE_COLOUR,
           .default_num = 8            .default_num = 8,
             .style = "status-right-style"
         },          },
   
         { .name = "status-right-fg",          { .name = "status-right-fg",
           .type = OPTIONS_TABLE_COLOUR,            .type = OPTIONS_TABLE_COLOUR,
           .default_num = 8            .default_num = 8,
             .style = "status-right-style"
         },          },
   
         { .name = "status-right-length",          { .name = "status-right-length",
Line 407 
Line 451 
           .default_num = 40            .default_num = 40
         },          },
   
           { .name = "status-right-style",
             .type = OPTIONS_TABLE_STYLE,
             .default_str = "default"
           },
   
           { .name = "status-style",
             .type = OPTIONS_TABLE_STYLE,
             .default_str = "bg=green,fg=black"
           },
   
         { .name = "status-utf8",          { .name = "status-utf8",
           .type = OPTIONS_TABLE_FLAG,            .type = OPTIONS_TABLE_FLAG,
           .default_num = 0 /* overridden in main() */            .default_num = 0 /* overridden in main() */
Line 537 
Line 591 
   
         { .name = "mode-attr",          { .name = "mode-attr",
           .type = OPTIONS_TABLE_ATTRIBUTES,            .type = OPTIONS_TABLE_ATTRIBUTES,
           .default_num = 0            .default_num = 0,
             .style = "mode-style"
         },          },
   
         { .name = "mode-bg",          { .name = "mode-bg",
           .type = OPTIONS_TABLE_COLOUR,            .type = OPTIONS_TABLE_COLOUR,
           .default_num = 3            .default_num = 3,
             .style = "mode-style"
         },          },
   
         { .name = "mode-fg",          { .name = "mode-fg",
           .type = OPTIONS_TABLE_COLOUR,            .type = OPTIONS_TABLE_COLOUR,
           .default_num = 0            .default_num = 0,
             .style = "mode-style"
         },          },
   
         { .name = "mode-keys",          { .name = "mode-keys",
Line 562 
Line 619 
           .default_num = 0            .default_num = 0
         },          },
   
           { .name = "mode-style",
             .type = OPTIONS_TABLE_STYLE,
             .default_str = "bg=yellow,fg=black"
           },
   
         { .name = "monitor-activity",          { .name = "monitor-activity",
           .type = OPTIONS_TABLE_FLAG,            .type = OPTIONS_TABLE_FLAG,
           .default_num = 0            .default_num = 0
Line 617 
Line 679 
   
         { .name = "window-status-activity-attr",          { .name = "window-status-activity-attr",
           .type = OPTIONS_TABLE_ATTRIBUTES,            .type = OPTIONS_TABLE_ATTRIBUTES,
           .default_num = GRID_ATTR_REVERSE            .default_num = GRID_ATTR_REVERSE,
             .style = "window-status-activity-style"
         },          },
   
         { .name = "window-status-activity-bg",          { .name = "window-status-activity-bg",
           .type = OPTIONS_TABLE_COLOUR,            .type = OPTIONS_TABLE_COLOUR,
           .default_num = 8            .default_num = 8,
             .style = "window-status-activity-style"
         },          },
   
         { .name = "window-status-activity-fg",          { .name = "window-status-activity-fg",
           .type = OPTIONS_TABLE_COLOUR,            .type = OPTIONS_TABLE_COLOUR,
           .default_num = 8            .default_num = 8,
             .style = "window-status-activity-style"
         },          },
   
           { .name = "window-status-activity-style",
             .type = OPTIONS_TABLE_STYLE,
             .default_str = "reverse"
           },
   
           { .name = "window-status-attr",
             .type = OPTIONS_TABLE_ATTRIBUTES,
             .default_num = 0,
             .style = "window-status-style"
           },
   
         { .name = "window-status-bell-attr",          { .name = "window-status-bell-attr",
           .type = OPTIONS_TABLE_ATTRIBUTES,            .type = OPTIONS_TABLE_ATTRIBUTES,
           .default_num = GRID_ATTR_REVERSE            .default_num = GRID_ATTR_REVERSE,
             .style = "window-status-bell-style"
         },          },
   
         { .name = "window-status-bell-bg",          { .name = "window-status-bell-bg",
           .type = OPTIONS_TABLE_COLOUR,            .type = OPTIONS_TABLE_COLOUR,
           .default_num = 8            .default_num = 8,
             .style = "window-status-bell-style"
         },          },
   
         { .name = "window-status-bell-fg",          { .name = "window-status-bell-fg",
           .type = OPTIONS_TABLE_COLOUR,            .type = OPTIONS_TABLE_COLOUR,
           .default_num = 8            .default_num = 8,
             .style = "window-status-bell-style"
         },          },
   
           { .name = "window-status-bell-style",
             .type = OPTIONS_TABLE_STYLE,
             .default_str = "reverse"
           },
   
           { .name = "window-status-bg",
             .type = OPTIONS_TABLE_COLOUR,
             .default_num = 8,
             .style = "window-status-style"
           },
   
         { .name = "window-status-content-attr",          { .name = "window-status-content-attr",
           .type = OPTIONS_TABLE_ATTRIBUTES,            .type = OPTIONS_TABLE_ATTRIBUTES,
           .default_num = GRID_ATTR_REVERSE            .default_num = GRID_ATTR_REVERSE,
             .style = "window-status-content-style"
         },          },
   
         { .name = "window-status-content-bg",          { .name = "window-status-content-bg",
           .type = OPTIONS_TABLE_COLOUR,            .type = OPTIONS_TABLE_COLOUR,
           .default_num = 8            .default_num = 8,
             .style = "window-status-content-style"
         },          },
   
         { .name = "window-status-content-fg",          { .name = "window-status-content-fg",
           .type = OPTIONS_TABLE_COLOUR,            .type = OPTIONS_TABLE_COLOUR,
           .default_num = 8            .default_num = 8,
             .style = "window-status-content-style"
         },          },
   
         { .name = "window-status-attr",          { .name = "window-status-content-style",
           .type = OPTIONS_TABLE_ATTRIBUTES,            .type = OPTIONS_TABLE_STYLE,
           .default_num = 0            .default_str = "reverse"
         },          },
   
         { .name = "window-status-bg",  
           .type = OPTIONS_TABLE_COLOUR,  
           .default_num = 8  
         },  
   
         { .name = "window-status-current-attr",          { .name = "window-status-current-attr",
           .type = OPTIONS_TABLE_ATTRIBUTES,            .type = OPTIONS_TABLE_ATTRIBUTES,
           .default_num = 0            .default_num = 0,
             .style = "window-status-current-style"
         },          },
   
         { .name = "window-status-current-bg",          { .name = "window-status-current-bg",
           .type = OPTIONS_TABLE_COLOUR,            .type = OPTIONS_TABLE_COLOUR,
           .default_num = 8            .default_num = 8,
             .style = "window-status-current-style"
         },          },
   
         { .name = "window-status-current-fg",          { .name = "window-status-current-fg",
           .type = OPTIONS_TABLE_COLOUR,            .type = OPTIONS_TABLE_COLOUR,
           .default_num = 8            .default_num = 8,
             .style = "window-status-current-style"
         },          },
   
         { .name = "window-status-current-format",          { .name = "window-status-current-format",
Line 690 
Line 781 
           .default_str = "#I:#W#F"            .default_str = "#I:#W#F"
         },          },
   
           { .name = "window-status-current-style",
             .type = OPTIONS_TABLE_STYLE,
             .default_str = "default"
           },
   
           { .name = "window-status-fg",
             .type = OPTIONS_TABLE_COLOUR,
             .default_num = 8,
             .style = "window-status-style"
           },
   
           { .name = "window-status-format",
             .type = OPTIONS_TABLE_STRING,
             .default_str = "#I:#W#F"
           },
   
         { .name = "window-status-last-attr",          { .name = "window-status-last-attr",
           .type = OPTIONS_TABLE_ATTRIBUTES,            .type = OPTIONS_TABLE_ATTRIBUTES,
           .default_num = 0            .default_num = 0,
             .style = "window-status-last-style"
         },          },
   
         { .name = "window-status-last-bg",          { .name = "window-status-last-bg",
           .type = OPTIONS_TABLE_COLOUR,            .type = OPTIONS_TABLE_COLOUR,
           .default_num = 8            .default_num = 8,
             .style = "window-status-last-style"
         },          },
   
         { .name = "window-status-last-fg",          { .name = "window-status-last-fg",
           .type = OPTIONS_TABLE_COLOUR,            .type = OPTIONS_TABLE_COLOUR,
           .default_num = 8            .default_num = 8,
             .style = "window-status-last-style"
         },          },
   
         { .name = "window-status-fg",          { .name = "window-status-last-style",
           .type = OPTIONS_TABLE_COLOUR,            .type = OPTIONS_TABLE_STYLE,
           .default_num = 8            .default_str = "default"
         },          },
   
         { .name = "window-status-format",  
           .type = OPTIONS_TABLE_STRING,  
           .default_str = "#I:#W#F"  
         },  
   
         { .name = "window-status-separator",          { .name = "window-status-separator",
           .type = OPTIONS_TABLE_STRING,            .type = OPTIONS_TABLE_STRING,
           .default_str = " "            .default_str = " "
         },          },
   
           { .name = "window-status-style",
             .type = OPTIONS_TABLE_STYLE,
             .default_str = "default"
           },
   
         { .name = "wrap-search",          { .name = "wrap-search",
           .type = OPTIONS_TABLE_FLAG,            .type = OPTIONS_TABLE_FLAG,
           .default_num = 1            .default_num = 1
Line 741 
Line 851 
         const struct options_table_entry        *oe;          const struct options_table_entry        *oe;
   
         for (oe = table; oe->name != NULL; oe++) {          for (oe = table; oe->name != NULL; oe++) {
                 if (oe->default_str != NULL)                  switch (oe->type) {
                   case OPTIONS_TABLE_STRING:
                         options_set_string(oo, oe->name, "%s", oe->default_str);                          options_set_string(oo, oe->name, "%s", oe->default_str);
                 else                          break;
                   case OPTIONS_TABLE_STYLE:
                           options_set_style(oo, oe->name, oe->default_str);
                           break;
                   default:
                         options_set_number(oo, oe->name, oe->default_num);                          options_set_number(oo, oe->name, oe->default_num);
                           break;
                   }
         }          }
 }  }
   
Line 787 
Line 904 
                 break;                  break;
         case OPTIONS_TABLE_CHOICE:          case OPTIONS_TABLE_CHOICE:
                 s = oe->choices[o->num];                  s = oe->choices[o->num];
                   xsnprintf(out, sizeof out, "%s", s);
                   break;
           case OPTIONS_TABLE_STYLE:
                   s = style_tostring(&o->style);
                 xsnprintf(out, sizeof out, "%s", s);                  xsnprintf(out, sizeof out, "%s", s);
                 break;                  break;
         }          }

Legend:
Removed from v.1.42  
changed lines
  Added in v.1.43