[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.23 and 1.24

version 1.23, 2009/08/11 22:34:17 version 1.24, 2009/08/12 09:41:59
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_redraw_region(struct tty *, struct tty_ctx *);  void    tty_redraw_region(struct tty *, const struct tty_ctx *);
 void    tty_emulate_repeat(  void    tty_emulate_repeat(
             struct tty *, enum tty_code_code, enum tty_code_code, u_int);              struct tty *, enum tty_code_code, enum tty_code_code, u_int);
 void    tty_cell(struct tty *,  void    tty_cell(struct tty *,
Line 461 
Line 461 
  * width of the terminal.   * width of the terminal.
  */   */
 void  void
 tty_redraw_region(struct tty *tty, struct tty_ctx *ctx)  tty_redraw_region(struct tty *tty, const struct tty_ctx *ctx)
 {  {
         struct window_pane      *wp = ctx->wp;          struct window_pane      *wp = ctx->wp;
         struct screen           *s = wp->screen;          struct screen           *s = wp->screen;
Line 532 
Line 532 
 }  }
   
 void  void
 tty_write(void (*cmdfn)(struct tty *, struct tty_ctx *), struct tty_ctx *ctx)  tty_write(void (*cmdfn)(
       struct tty *, const struct tty_ctx *), const struct tty_ctx *ctx)
 {  {
         struct window_pane      *wp = ctx->wp;          struct window_pane      *wp = ctx->wp;
         struct client           *c;          struct client           *c;
Line 563 
Line 564 
 }  }
   
 void  void
 tty_cmd_insertcharacter(struct tty *tty, struct tty_ctx *ctx)  tty_cmd_insertcharacter(struct tty *tty, const struct tty_ctx *ctx)
 {  {
         struct window_pane      *wp = ctx->wp;          struct window_pane      *wp = ctx->wp;
         struct screen           *s = wp->screen;          struct screen           *s = wp->screen;
           u_int                    i;
   
         if (wp->xoff != 0 || screen_size_x(s) < tty->sx) {          if (wp->xoff != 0 || screen_size_x(s) < tty->sx) {
                 tty_draw_line(tty, wp->screen, ctx->ocy, wp->xoff, wp->yoff);                  tty_draw_line(tty, wp->screen, ctx->ocy, wp->xoff, wp->yoff);
Line 581 
Line 583 
                 tty_emulate_repeat(tty, TTYC_ICH, TTYC_ICH1, ctx->num);                  tty_emulate_repeat(tty, TTYC_ICH, TTYC_ICH1, ctx->num);
         else {          else {
                 tty_putcode(tty, TTYC_SMIR);                  tty_putcode(tty, TTYC_SMIR);
                 while (ctx->num-- > 0)                  for (i = 0; i < ctx->num; i++)
                         tty_putc(tty, ' ');                          tty_putc(tty, ' ');
                 tty_putcode(tty, TTYC_RMIR);                  tty_putcode(tty, TTYC_RMIR);
         }          }
 }  }
   
 void  void
 tty_cmd_deletecharacter(struct tty *tty, struct tty_ctx *ctx)  tty_cmd_deletecharacter(struct tty *tty, const struct tty_ctx *ctx)
 {  {
         struct window_pane      *wp = ctx->wp;          struct window_pane      *wp = ctx->wp;
         struct screen           *s = wp->screen;          struct screen           *s = wp->screen;
Line 605 
Line 607 
 }  }
   
 void  void
 tty_cmd_insertline(struct tty *tty, struct tty_ctx *ctx)  tty_cmd_insertline(struct tty *tty, const struct tty_ctx *ctx)
 {  {
         struct window_pane      *wp = ctx->wp;          struct window_pane      *wp = ctx->wp;
         struct screen           *s = wp->screen;          struct screen           *s = wp->screen;
Line 625 
Line 627 
 }  }
   
 void  void
 tty_cmd_deleteline(struct tty *tty, struct tty_ctx *ctx)  tty_cmd_deleteline(struct tty *tty, const struct tty_ctx *ctx)
 {  {
         struct window_pane      *wp = ctx->wp;          struct window_pane      *wp = ctx->wp;
         struct screen           *s = wp->screen;          struct screen           *s = wp->screen;
Line 645 
Line 647 
 }  }
   
 void  void
 tty_cmd_clearline(struct tty *tty, struct tty_ctx *ctx)  tty_cmd_clearline(struct tty *tty, const struct tty_ctx *ctx)
 {  {
         struct window_pane      *wp = ctx->wp;          struct window_pane      *wp = ctx->wp;
         struct screen           *s = wp->screen;          struct screen           *s = wp->screen;
Line 664 
Line 666 
 }  }
   
 void  void
 tty_cmd_clearendofline(struct tty *tty, struct tty_ctx *ctx)  tty_cmd_clearendofline(struct tty *tty, const struct tty_ctx *ctx)
 {  {
         struct window_pane      *wp = ctx->wp;          struct window_pane      *wp = ctx->wp;
         struct screen           *s = wp->screen;          struct screen           *s = wp->screen;
Line 683 
Line 685 
 }  }
   
 void  void
 tty_cmd_clearstartofline(struct tty *tty, struct tty_ctx *ctx)  tty_cmd_clearstartofline(struct tty *tty, const struct tty_ctx *ctx)
 {  {
         struct window_pane      *wp = ctx->wp;          struct window_pane      *wp = ctx->wp;
         u_int                    i;          u_int                    i;
Line 701 
Line 703 
 }  }
   
 void  void
 tty_cmd_reverseindex(struct tty *tty, struct tty_ctx *ctx)  tty_cmd_reverseindex(struct tty *tty, const struct tty_ctx *ctx)
 {  {
         struct window_pane      *wp = ctx->wp;          struct window_pane      *wp = ctx->wp;
         struct screen           *s = wp->screen;          struct screen           *s = wp->screen;
Line 723 
Line 725 
 }  }
   
 void  void
 tty_cmd_linefeed(struct tty *tty, struct tty_ctx *ctx)  tty_cmd_linefeed(struct tty *tty, const struct tty_ctx *ctx)
 {  {
         struct window_pane      *wp = ctx->wp;          struct window_pane      *wp = ctx->wp;
         struct screen           *s = wp->screen;          struct screen           *s = wp->screen;
Line 745 
Line 747 
 }  }
   
 void  void
 tty_cmd_clearendofscreen(struct tty *tty, struct tty_ctx *ctx)  tty_cmd_clearendofscreen(struct tty *tty, const struct tty_ctx *ctx)
 {  {
         struct window_pane      *wp = ctx->wp;          struct window_pane      *wp = ctx->wp;
         struct screen           *s = wp->screen;          struct screen           *s = wp->screen;
Line 780 
Line 782 
 }  }
   
 void  void
 tty_cmd_clearstartofscreen(struct tty *tty, struct tty_ctx *ctx)  tty_cmd_clearstartofscreen(struct tty *tty, const struct tty_ctx *ctx)
 {  {
         struct window_pane      *wp = ctx->wp;          struct window_pane      *wp = ctx->wp;
         struct screen           *s = wp->screen;          struct screen           *s = wp->screen;
Line 809 
Line 811 
 }  }
   
 void  void
 tty_cmd_clearscreen(struct tty *tty, struct tty_ctx *ctx)  tty_cmd_clearscreen(struct tty *tty, const struct tty_ctx *ctx)
 {  {
         struct window_pane      *wp = ctx->wp;          struct window_pane      *wp = ctx->wp;
         struct screen           *s = wp->screen;          struct screen           *s = wp->screen;
Line 838 
Line 840 
 }  }
   
 void  void
 tty_cmd_alignmenttest(struct tty *tty, struct tty_ctx *ctx)  tty_cmd_alignmenttest(struct tty *tty, const struct tty_ctx *ctx)
 {  {
         struct window_pane      *wp = ctx->wp;          struct window_pane      *wp = ctx->wp;
         struct screen           *s = wp->screen;          struct screen           *s = wp->screen;
Line 856 
Line 858 
 }  }
   
 void  void
 tty_cmd_cell(struct tty *tty, struct tty_ctx *ctx)  tty_cmd_cell(struct tty *tty, const struct tty_ctx *ctx)
 {  {
         struct window_pane      *wp = ctx->wp;          struct window_pane      *wp = ctx->wp;
   
Line 866 
Line 868 
 }  }
   
 void  void
 tty_cmd_utf8character(struct tty *tty, struct tty_ctx *ctx)  tty_cmd_utf8character(struct tty *tty, const struct tty_ctx *ctx)
 {  {
         u_char  *ptr = ctx->ptr;          u_char  *ptr = ctx->ptr;
         size_t   i;          size_t   i;

Legend:
Removed from v.1.23  
changed lines
  Added in v.1.24