[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.183 and 1.184

version 1.183, 2019/02/09 18:18:36 version 1.184, 2019/03/12 20:02:47
Line 465 
Line 465 
         screen_write_start(&ctx, NULL, &c->status.status);          screen_write_start(&ctx, NULL, &c->status.status);
   
         /* Draw the left string and arrow. */          /* Draw the left string and arrow. */
         screen_write_cursormove(&ctx, 0, 0);          screen_write_cursormove(&ctx, 0, 0, 0);
         if (llen != 0)          if (llen != 0)
                 screen_write_cnputs(&ctx, llen, &lgc, "%s", left);                  screen_write_cnputs(&ctx, llen, &lgc, "%s", left);
         if (larrow != 0) {          if (larrow != 0) {
Line 477 
Line 477 
   
         /* Draw the right string and arrow. */          /* Draw the right string and arrow. */
         if (rarrow != 0) {          if (rarrow != 0) {
                 screen_write_cursormove(&ctx, c->tty.sx - rlen - 1, 0);                  screen_write_cursormove(&ctx, c->tty.sx - rlen - 1, 0, 0);
                 memcpy(&gc, &stdgc, sizeof gc);                  memcpy(&gc, &stdgc, sizeof gc);
                 if (rarrow == -1)                  if (rarrow == -1)
                         gc.attr ^= GRID_ATTR_REVERSE;                          gc.attr ^= GRID_ATTR_REVERSE;
                 screen_write_putc(&ctx, &gc, '>');                  screen_write_putc(&ctx, &gc, '>');
         } else          } else
                 screen_write_cursormove(&ctx, c->tty.sx - rlen, 0);                  screen_write_cursormove(&ctx, c->tty.sx - rlen, 0, 0);
         if (rlen != 0)          if (rlen != 0)
                 screen_write_cnputs(&ctx, rlen, &rgc, "%s", right);                  screen_write_cnputs(&ctx, rlen, &rgc, "%s", right);
   
Line 507 
Line 507 
   
         /* Copy the window list. */          /* Copy the window list. */
         c->status.window_list_offset = -wloffset + wlstart;          c->status.window_list_offset = -wloffset + wlstart;
         screen_write_cursormove(&ctx, wloffset, 0);          screen_write_cursormove(&ctx, wloffset, 0, 0);
         screen_write_fast_copy(&ctx, &window_list, wlstart, 0, wlwidth, 1);          screen_write_fast_copy(&ctx, &window_list, wlstart, 0, wlwidth, 1);
         screen_free(&window_list);          screen_free(&window_list);
   
Line 677 
Line 677 
         style_apply(&gc, s->options, "message-style");          style_apply(&gc, s->options, "message-style");
   
         screen_write_start(&ctx, NULL, &c->status.status);          screen_write_start(&ctx, NULL, &c->status.status);
         screen_write_cursormove(&ctx, 0, 0);          screen_write_cursormove(&ctx, 0, 0, 0);
         for (offset = 0; offset < lines * c->tty.sx; offset++)          for (offset = 0; offset < lines * c->tty.sx; offset++)
                 screen_write_putc(&ctx, &gc, ' ');                  screen_write_putc(&ctx, &gc, ' ');
         screen_write_cursormove(&ctx, 0, lines - 1);          screen_write_cursormove(&ctx, 0, lines - 1, 0);
         screen_write_nputs(&ctx, len, &gc, "%s", c->message_string);          screen_write_nputs(&ctx, len, &gc, "%s", c->message_string);
         screen_write_stop(&ctx);          screen_write_stop(&ctx);
   
Line 839 
Line 839 
                 start = c->tty.sx;                  start = c->tty.sx;
   
         screen_write_start(&ctx, NULL, &c->status.status);          screen_write_start(&ctx, NULL, &c->status.status);
         screen_write_cursormove(&ctx, 0, 0);          screen_write_cursormove(&ctx, 0, 0, 0);
         for (offset = 0; offset < lines * c->tty.sx; offset++)          for (offset = 0; offset < lines * c->tty.sx; offset++)
                 screen_write_putc(&ctx, &gc, ' ');                  screen_write_putc(&ctx, &gc, ' ');
         screen_write_cursormove(&ctx, 0, 0);          screen_write_cursormove(&ctx, 0, 0, 0);
         screen_write_nputs(&ctx, start, &gc, "%s", c->prompt_string);          screen_write_nputs(&ctx, start, &gc, "%s", c->prompt_string);
         screen_write_cursormove(&ctx, start, 0);          screen_write_cursormove(&ctx, start, 0, 0);
   
         left = c->tty.sx - start;          left = c->tty.sx - start;
         if (left == 0)          if (left == 0)

Legend:
Removed from v.1.183  
changed lines
  Added in v.1.184