[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.188 and 1.189

version 1.188, 2015/09/25 23:30:12 version 1.189, 2015/10/23 15:52:54
Line 228 
Line 228 
         if (tty_term_has(tty->term, TTYC_KMOUS))          if (tty_term_has(tty->term, TTYC_KMOUS))
                 tty_puts(tty, "\033[?1000l\033[?1002l\033[?1006l\033[?1005l");                  tty_puts(tty, "\033[?1000l\033[?1002l\033[?1006l\033[?1005l");
   
         if (tty_term_has(tty->term, TTYC_XT)) {          if (tty_term_flag(tty->term, TTYC_XT)) {
                 if (options_get_number(&global_options, "focus-events")) {                  if (options_get_number(&global_options, "focus-events")) {
                         tty->flags |= TTY_FOCUS;                          tty->flags |= TTY_FOCUS;
                         tty_puts(tty, "\033[?1004h");                          tty_puts(tty, "\033[?1004h");
Line 293 
Line 293 
         if (tty_term_has(tty->term, TTYC_KMOUS))          if (tty_term_has(tty->term, TTYC_KMOUS))
                 tty_raw(tty, "\033[?1000l\033[?1002l\033[?1006l\033[?1005l");                  tty_raw(tty, "\033[?1000l\033[?1002l\033[?1006l\033[?1005l");
   
         if (tty_term_has(tty->term, TTYC_XT)) {          if (tty_term_flag(tty->term, TTYC_XT)) {
                 if (tty->flags & TTY_FOCUS) {                  if (tty->flags & TTY_FOCUS) {
                         tty->flags &= ~TTY_FOCUS;                          tty->flags &= ~TTY_FOCUS;
                         tty_raw(tty, "\033[?1004l");                          tty_raw(tty, "\033[?1004l");
Line 1648 
Line 1648 
         char    s[32];          char    s[32];
   
         /*          /*
            * If the user has specified -2 to the client, setaf and setab may not
            * work (or they may not want to use them), so send the usual sequence.
            */
           if (tty->term_flags & TERM_256COLOURS)
                   goto fallback;
   
           /*
          * If the terminfo entry has 256 colours and setaf and setab exist,           * If the terminfo entry has 256 colours and setaf and setab exist,
          * assume that they work correctly.           * assume that they work correctly.
          */           */
Line 1663 
Line 1670 
                 }                  }
                 return (0);                  return (0);
         }          }
   
         /*  
          * If the user has specified -2 to the client, setaf and setab may not  
          * work, so send the usual sequence.  
          */  
         if (tty->term_flags & TERM_256COLOURS)  
                 goto fallback;  
   
         return (-1);          return (-1);
   

Legend:
Removed from v.1.188  
changed lines
  Added in v.1.189