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

Diff for /src/usr.bin/tmux/tty.c between version 1.3 and 1.4

version 1.3, 2009/06/03 23:26:56 version 1.4, 2009/06/03 23:30:40
Line 38 
Line 38 
 void    tty_attributes_fg(struct tty *, const struct grid_cell *);  void    tty_attributes_fg(struct tty *, const struct grid_cell *);
 void    tty_attributes_bg(struct tty *, const struct grid_cell *);  void    tty_attributes_bg(struct tty *, const struct grid_cell *);
   
   void    tty_cmd_alignmenttest(struct tty *, struct window_pane *, va_list);
 void    tty_cmd_cell(struct tty *, struct window_pane *, va_list);  void    tty_cmd_cell(struct tty *, struct window_pane *, va_list);
 void    tty_cmd_clearendofline(struct tty *, struct window_pane *, va_list);  void    tty_cmd_clearendofline(struct tty *, struct window_pane *, va_list);
 void    tty_cmd_clearendofscreen(struct tty *, struct window_pane *, va_list);  void    tty_cmd_clearendofscreen(struct tty *, struct window_pane *, va_list);
Line 54 
Line 55 
 void    tty_cmd_reverseindex(struct tty *, struct window_pane *, va_list);  void    tty_cmd_reverseindex(struct tty *, struct window_pane *, va_list);
   
 void (*tty_cmds[])(struct tty *, struct window_pane *, va_list) = {  void (*tty_cmds[])(struct tty *, struct window_pane *, va_list) = {
           tty_cmd_alignmenttest,
         tty_cmd_cell,          tty_cmd_cell,
         tty_cmd_clearendofline,          tty_cmd_clearendofline,
         tty_cmd_clearendofscreen,          tty_cmd_clearendofscreen,
Line 827 
Line 829 
                         for (i = 0; i < screen_size_x(s); i++)                          for (i = 0; i < screen_size_x(s); i++)
                                 tty_putc(tty, ' ');                                  tty_putc(tty, ' ');
                 }                  }
           }
   }
   
   void
   tty_cmd_alignmenttest(
       struct tty *tty, struct window_pane *wp, unused va_list ap)
   {
           struct screen   *s = wp->screen;
           u_int            i, j;
   
           tty_reset(tty);
   
           tty_region(tty, 0, screen_size_y(s) - 1, wp->yoff);
   
           for (j = 0; j < screen_size_y(s); j++) {
                   tty_cursor(tty, 0, j, wp->xoff, wp->yoff);
                   for (i = 0; i < screen_size_x(s); i++)
                           tty_putc(tty, 'E');
         }          }
 }  }
   

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4