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

Diff for /src/usr.bin/tmux/tty-term.c between version 1.74 and 1.75

version 1.74, 2020/04/20 13:38:48 version 1.75, 2020/04/20 15:37:32
Line 410 
Line 410 
         }          }
 }  }
   
   void
   tty_term_apply_overrides(struct tty_term *term)
   {
           struct options_entry            *o;
           struct options_array_item       *a;
           union options_value             *ov;
           const char                      *s;
           size_t                           offset;
           char                            *first;
   
           o = options_get_only(global_options, "terminal-overrides");
           a = options_array_first(o);
           while (a != NULL) {
                   ov = options_array_item_value(a);
                   s = ov->string;
   
                   offset = 0;
                   first = tty_term_override_next(s, &offset);
                   if (first != NULL && fnmatch(first, term->name, 0) == 0)
                           tty_term_apply(term, s + offset, 0);
                   a = options_array_next(a);
           }
   }
   
 struct tty_term *  struct tty_term *
 tty_term_create(struct tty *tty, char *name, int *feat, int fd, char **cause)  tty_term_create(struct tty *tty, char *name, int *feat, int fd, char **cause)
 {  {
Line 501 
Line 525 
                 a = options_array_next(a);                  a = options_array_next(a);
         }          }
   
         /* Apply terminal overrides. */  
         o = options_get_only(global_options, "terminal-overrides");  
         a = options_array_first(o);  
         while (a != NULL) {  
                 ov = options_array_item_value(a);  
                 s = ov->string;  
   
                 offset = 0;  
                 first = tty_term_override_next(s, &offset);  
                 if (first != NULL && fnmatch(first, term->name, 0) == 0)  
                         tty_term_apply(term, s + offset, 0);  
                 a = options_array_next(a);  
         }  
   
         /* Delete curses data. */          /* Delete curses data. */
         del_curterm(cur_term);          del_curterm(cur_term);
   
Line 544 
Line 554 
         if (tty_term_flag(term, TTYC_XT))          if (tty_term_flag(term, TTYC_XT))
                 tty_add_features(feat, "title", ":,");                  tty_add_features(feat, "title", ":,");
   
         /* Apply the features. */          /* Apply the features and overrides. */
         tty_apply_features(term, *feat);          tty_apply_features(term, *feat);
           tty_term_apply_overrides(term);
   
         /*          /*
          * Terminals without xenl (eat newline glitch) wrap at at $COLUMNS - 1           * Terminals without xenl (eat newline glitch) wrap at at $COLUMNS - 1

Legend:
Removed from v.1.74  
changed lines
  Added in v.1.75