[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.316 and 1.317

version 1.316, 2019/03/13 22:01:22 version 1.317, 2019/03/14 09:50:09
Line 45 
Line 45 
                     const struct tty_ctx *, u_int, u_int);                      const struct tty_ctx *, u_int, u_int);
 static void     tty_invalidate(struct tty *);  static void     tty_invalidate(struct tty *);
 static void     tty_colours(struct tty *, const struct grid_cell *);  static void     tty_colours(struct tty *, const struct grid_cell *);
 static void     tty_check_fg(struct tty *, const struct window_pane *,  static void     tty_check_fg(struct tty *, struct window_pane *,
                     struct grid_cell *);                      struct grid_cell *);
 static void     tty_check_bg(struct tty *, const struct window_pane *,  static void     tty_check_bg(struct tty *, struct window_pane *,
                     struct grid_cell *);                      struct grid_cell *);
 static void     tty_colours_fg(struct tty *, const struct grid_cell *);  static void     tty_colours_fg(struct tty *, const struct grid_cell *);
 static void     tty_colours_bg(struct tty *, const struct grid_cell *);  static void     tty_colours_bg(struct tty *, const struct grid_cell *);
Line 58 
Line 58 
 static void     tty_margin_pane(struct tty *, const struct tty_ctx *);  static void     tty_margin_pane(struct tty *, const struct tty_ctx *);
 static void     tty_margin(struct tty *, u_int, u_int);  static void     tty_margin(struct tty *, u_int, u_int);
 static int      tty_large_region(struct tty *, const struct tty_ctx *);  static int      tty_large_region(struct tty *, const struct tty_ctx *);
 static int      tty_fake_bce(const struct tty *, const struct window_pane *,  static int      tty_fake_bce(const struct tty *, struct window_pane *, u_int);
                     u_int);  
 static void     tty_redraw_region(struct tty *, const struct tty_ctx *);  static void     tty_redraw_region(struct tty *, const struct tty_ctx *);
 static void     tty_emulate_repeat(struct tty *, enum tty_code_code,  static void     tty_emulate_repeat(struct tty *, enum tty_code_code,
                     enum tty_code_code, u_int);                      enum tty_code_code, u_int);
 static void     tty_repeat_space(struct tty *, u_int);  static void     tty_repeat_space(struct tty *, u_int);
 static void     tty_draw_pane(struct tty *, const struct tty_ctx *, u_int);  static void     tty_draw_pane(struct tty *, const struct tty_ctx *, u_int);
 static void     tty_cell(struct tty *, const struct grid_cell *,  static void     tty_cell(struct tty *, const struct grid_cell *,
                     const struct window_pane *);                      struct window_pane *);
 static void     tty_default_colours(struct grid_cell *,  static void     tty_default_colours(struct grid_cell *, struct window_pane *);
                     const struct window_pane *);  static void     tty_default_attributes(struct tty *, struct window_pane *,
 static void     tty_default_attributes(struct tty *, const struct window_pane *,  
                     u_int);                      u_int);
   
 #define tty_use_margin(tty) \  #define tty_use_margin(tty) \
Line 847 
Line 845 
  * emulated.   * emulated.
  */   */
 static int  static int
 tty_fake_bce(const struct tty *tty, const struct window_pane *wp, u_int bg)  tty_fake_bce(const struct tty *tty, struct window_pane *wp, u_int bg)
 {  {
         struct grid_cell        gc;          struct grid_cell        gc;
   
Line 956 
Line 954 
   
 /* Clear a line. */  /* Clear a line. */
 static void  static void
 tty_clear_line(struct tty *tty, const struct window_pane *wp, u_int py,  tty_clear_line(struct tty *tty, struct window_pane *wp, u_int py, u_int px,
     u_int px, u_int nx, u_int bg)      u_int nx, u_int bg)
 {  {
         struct client   *c = tty->client;          struct client   *c = tty->client;
   
Line 1075 
Line 1073 
   
 /* Clear an area, adjusting to visible part of pane. */  /* Clear an area, adjusting to visible part of pane. */
 static void  static void
 tty_clear_area(struct tty *tty, const struct window_pane *wp, u_int py,  tty_clear_area(struct tty *tty, struct window_pane *wp, u_int py, u_int ny,
     u_int ny, u_int px, u_int nx, u_int bg)      u_int px, u_int nx, u_int bg)
 {  {
         struct client   *c = tty->client;          struct client   *c = tty->client;
         u_int            yy;          u_int            yy;
Line 1198 
Line 1196 
 }  }
   
 void  void
 tty_draw_line(struct tty *tty, const struct window_pane *wp,  tty_draw_line(struct tty *tty, struct window_pane *wp, struct screen *s,
     struct screen *s, u_int px, u_int py, u_int nx, u_int atx, u_int aty)      u_int px, u_int py, u_int nx, u_int atx, u_int aty)
 {  {
         struct grid             *gd = s->grid;          struct grid             *gd = s->grid;
         struct grid_cell         gc, last;          struct grid_cell         gc, last;
Line 1802 
Line 1800 
 }  }
   
 static void  static void
 tty_cell(struct tty *tty, const struct grid_cell *gc,  tty_cell(struct tty *tty, const struct grid_cell *gc, struct window_pane *wp)
     const struct window_pane *wp)  
 {  {
         const struct grid_cell  *gcp;          const struct grid_cell  *gcp;
   
Line 2117 
Line 2114 
   
 void  void
 tty_attributes(struct tty *tty, const struct grid_cell *gc,  tty_attributes(struct tty *tty, const struct grid_cell *gc,
     const struct window_pane *wp)      struct window_pane *wp)
 {  {
         struct grid_cell        *tc = &tty->cell, gc2;          struct grid_cell        *tc = &tty->cell, gc2;
         int                      changed;          int                      changed;
Line 2265 
Line 2262 
 }  }
   
 static void  static void
 tty_check_fg(struct tty *tty, const struct window_pane *wp,  tty_check_fg(struct tty *tty, struct window_pane *wp, struct grid_cell *gc)
     struct grid_cell *gc)  
 {  {
         u_char  r, g, b;          u_char  r, g, b;
         u_int   colours;          u_int   colours;
Line 2326 
Line 2322 
 }  }
   
 static void  static void
 tty_check_bg(struct tty *tty, const struct window_pane *wp,  tty_check_bg(struct tty *tty, struct window_pane *wp, struct grid_cell *gc)
     struct grid_cell *gc)  
 {  {
         u_char  r, g, b;          u_char  r, g, b;
         u_int   colours;          u_int   colours;
Line 2499 
Line 2494 
 }  }
   
 static void  static void
 tty_default_colours(struct grid_cell *gc, const struct window_pane *wp)  tty_default_colours(struct grid_cell *gc, struct window_pane *wp)
 {  {
         struct window           *w = wp->window;          struct window           *w = wp->window;
         struct options          *oo = w->options;          struct options          *oo = w->options;
Line 2550 
Line 2545 
 }  }
   
 static void  static void
 tty_default_attributes(struct tty *tty, const struct window_pane *wp, u_int bg)  tty_default_attributes(struct tty *tty, struct window_pane *wp, u_int bg)
 {  {
         static struct grid_cell gc;          static struct grid_cell gc;
   

Legend:
Removed from v.1.316  
changed lines
  Added in v.1.317