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

Diff for /src/usr.bin/tmux/tmux.h between version 1.1052 and 1.1053

version 1.1052, 2020/05/24 09:40:17 version 1.1053, 2020/05/25 09:32:10
Line 597 
Line 597 
 #define MOTION_MOUSE_MODES (MODE_MOUSE_BUTTON|MODE_MOUSE_ALL)  #define MOTION_MOUSE_MODES (MODE_MOUSE_BUTTON|MODE_MOUSE_ALL)
   
 /*  /*
  * A single UTF-8 character. UTF8_SIZE must be big enough to hold   * A single UTF-8 character. UTF8_SIZE must be big enough to hold combining
  * combining characters as well, currently at most five (of three   * characters as well. It can't be more than 32 bytes without changes to how
  * bytes) are supported.   * big characters are stored.
 */   */
 #define UTF8_SIZE 18  #define UTF8_SIZE 21
 struct utf8_data {  struct utf8_data {
         u_char  data[UTF8_SIZE];          u_char  data[UTF8_SIZE];
   
Line 609 
Line 609 
         u_char  size;          u_char  size;
   
         u_char  width;  /* 0xff if invalid */          u_char  width;  /* 0xff if invalid */
 } __packed;  };
 enum utf8_state {  enum utf8_state {
         UTF8_MORE,          UTF8_MORE,
         UTF8_DONE,          UTF8_DONE,
Line 663 
Line 663 
   
 /* Grid cell data. */  /* Grid cell data. */
 struct grid_cell {  struct grid_cell {
         struct utf8_data        data; /* 21 bytes */          struct utf8_data        data;
         u_short                 attr;          u_short                 attr;
         u_char                  flags;          u_char                  flags;
         int                     fg;          int                     fg;
         int                     bg;          int                     bg;
         int                     us;          int                     us;
   };
   
   /* Grid extended cell entry. */
   struct grid_extd_entry {
           uint32_t                data;
           u_short                 attr;
           u_char                  flags;
           int                     fg;
           int                     bg;
           int                     us;
 } __packed;  } __packed;
   
   /* Grid cell entry. */
 struct grid_cell_entry {  struct grid_cell_entry {
         u_char                  flags;          u_char                  flags;
         union {          union {
Line 690 
Line 702 
         struct grid_cell_entry  *celldata;          struct grid_cell_entry  *celldata;
   
         u_int                    extdsize;          u_int                    extdsize;
         struct grid_cell        *extddata;          struct grid_extd_entry  *extddata;
   
         int                      flags;          int                      flags;
 } __packed;  } __packed;
Line 2877 
Line 2889 
 void             session_renumber_windows(struct session *);  void             session_renumber_windows(struct session *);
   
 /* utf8.c */  /* utf8.c */
   uint32_t         utf8_set_big(char, u_int);
   uint32_t         utf8_map_big(const struct utf8_data *);
   void             utf8_get_big(uint32_t, struct utf8_data *);
 void             utf8_set(struct utf8_data *, u_char);  void             utf8_set(struct utf8_data *, u_char);
 void             utf8_copy(struct utf8_data *, const struct utf8_data *);  void             utf8_copy(struct utf8_data *, const struct utf8_data *);
 enum utf8_state  utf8_open(struct utf8_data *, u_char);  enum utf8_state  utf8_open(struct utf8_data *, u_char);

Legend:
Removed from v.1.1052  
changed lines
  Added in v.1.1053