[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.194 and 1.195

version 1.194, 2015/11/18 14:27:44 version 1.195, 2015/11/23 20:53:09
Line 521 
Line 521 
                 }                  }
                 tty->cstyle = s->cstyle;                  tty->cstyle = s->cstyle;
         }          }
         if (changed & (ALL_MOUSE_MODES|MODE_MOUSE_UTF8)) {          if (changed & ALL_MOUSE_MODES) {
                 if (mode & ALL_MOUSE_MODES) {                  if (mode & ALL_MOUSE_MODES) {
                         /*                          /*
                          * Enable the UTF-8 (1005) extension if configured to.  
                          * Enable the SGR (1006) extension unconditionally, as                           * Enable the SGR (1006) extension unconditionally, as
                          * this is safe from misinterpretation. Do it in this                           * this is safe from misinterpretation. Do it in this
                          * order, because in some terminals it's the last one                           * order, because in some terminals it's the last one
                          * that takes effect and SGR is the preferred one.                           * that takes effect and SGR is the preferred one.
                          */                           */
                         if (mode & MODE_MOUSE_UTF8)  
                                 tty_puts(tty, "\033[?1005h");  
                         else  
                                 tty_puts(tty, "\033[?1005l");  
                         tty_puts(tty, "\033[?1006h");                          tty_puts(tty, "\033[?1006h");
   
                         if (mode & MODE_MOUSE_BUTTON)                          if (mode & MODE_MOUSE_BUTTON)
                                 tty_puts(tty, "\033[?1002h");                                  tty_puts(tty, "\033[?1002h");
                         else if (mode & MODE_MOUSE_STANDARD)                          else if (mode & MODE_MOUSE_STANDARD)
Line 545 
Line 539 
                                 tty_puts(tty, "\033[?1002l");                                  tty_puts(tty, "\033[?1002l");
                         else if (tty->mode & MODE_MOUSE_STANDARD)                          else if (tty->mode & MODE_MOUSE_STANDARD)
                                 tty_puts(tty, "\033[?1000l");                                  tty_puts(tty, "\033[?1000l");
   
                         tty_puts(tty, "\033[?1006l");                          tty_puts(tty, "\033[?1006l");
                         if (tty->mode & MODE_MOUSE_UTF8)  
                                 tty_puts(tty, "\033[?1005l");  
                 }                  }
         }          }
         if (changed & MODE_KKEYPAD) {          if (changed & MODE_KKEYPAD) {

Legend:
Removed from v.1.194  
changed lines
  Added in v.1.195