[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.79 and 1.80

version 1.79, 2020/05/16 14:39:40 version 1.80, 2020/05/16 14:46:14
Line 549 
Line 549 
                 goto error;                  goto error;
         }          }
   
         /* These can be emulated so one of the two is required. */          /*
         if (!tty_term_has(term, TTYC_CUD1) && !tty_term_has(term, TTYC_CUD)) {           * If TERM has XT or clear starts with CSI then it is safe to assume
                 xasprintf(cause, "terminal does not support cud1 or cud");           * the terminal is derived from the VT100. This controls whether device
                 goto error;           * attributes requests are sent to get more information.
            *
            * This is a bit of a hack but there aren't that many alternatives.
            * Worst case tmux will just fall back to using whatever terminfo(5)
            * says without trying to correct anything that is missing.
            *
            * Also add few features that VT100-like terminals should either
            * support or safely ignore.
            */
           s = tty_term_string(term, TTYC_CLEAR);
           if (tty_term_flag(term, TTYC_XT) || strncmp(s, "\033[", 2) == 0) {
                   term->flags |= TERM_VT100LIKE;
                   tty_add_features(feat, "bpaste,focus,title", ",");
         }          }
   
         /* Add RGB feature if terminal has RGB colours. */          /* Add RGB feature if terminal has RGB colours. */
Line 560 
Line 572 
             (!tty_term_has(term, TTYC_SETRGBF) ||              (!tty_term_has(term, TTYC_SETRGBF) ||
             !tty_term_has(term, TTYC_SETRGBB)))              !tty_term_has(term, TTYC_SETRGBB)))
                 tty_add_features(feat, "RGB", ",");                  tty_add_features(feat, "RGB", ",");
   
         /* Add some features if terminal has XT. */  
         if (tty_term_flag(term, TTYC_XT))  
                 tty_add_features(feat, "bpaste,focus,title", ",");  
   
         /* Apply the features and overrides again. */          /* Apply the features and overrides again. */
         tty_apply_features(term, *feat);          tty_apply_features(term, *feat);

Legend:
Removed from v.1.79  
changed lines
  Added in v.1.80