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

Diff for /src/usr.bin/tmux/status.c between version 1.33 and 1.34

version 1.33, 2009/09/10 17:16:24 version 1.34, 2009/09/20 14:58:12
Line 64 
Line 64 
         screen_init(&c->status, c->tty.sx, 1, 0);          screen_init(&c->status, c->tty.sx, 1, 0);
   
         if (gettimeofday(&c->status_timer, NULL) != 0)          if (gettimeofday(&c->status_timer, NULL) != 0)
                 fatal("gettimeofday");                  fatal("gettimeofday failed");
         memcpy(&stdgc, &grid_default_cell, sizeof gc);          memcpy(&stdgc, &grid_default_cell, sizeof gc);
         colour_set_fg(&stdgc, options_get_number(&s->options, "status-fg"));          colour_set_fg(&stdgc, options_get_number(&s->options, "status-fg"));
         colour_set_bg(&stdgc, options_get_number(&s->options, "status-bg"));          colour_set_bg(&stdgc, options_get_number(&s->options, "status-bg"));
Line 361 
Line 361 
                         case 'H':                          case 'H':
                                 if (ptr == NULL) {                                  if (ptr == NULL) {
                                         if (gethostname(tmp, sizeof tmp) != 0)                                          if (gethostname(tmp, sizeof tmp) != 0)
                                                 fatal("gethostname");                                                  fatal("gethostname failed");
                                         ptr = tmp;                                          ptr = tmp;
                                 }                                  }
                                 /* FALLTHROUGH */                                  /* FALLTHROUGH */
Line 565 
Line 565 
         tv.tv_usec = (delay % 1000) * 1000L;          tv.tv_usec = (delay % 1000) * 1000L;
   
         if (gettimeofday(&c->message_timer, NULL) != 0)          if (gettimeofday(&c->message_timer, NULL) != 0)
                 fatal("gettimeofday");                  fatal("gettimeofday failed");
         timeradd(&c->message_timer, &tv, &c->message_timer);          timeradd(&c->message_timer, &tv, &c->message_timer);
   
         c->tty.flags |= (TTY_NOCURSOR|TTY_FREEZE);          c->tty.flags |= (TTY_NOCURSOR|TTY_FREEZE);

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