[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.107 and 1.108

version 1.107, 2011/05/20 19:03:58 version 1.108, 2011/05/20 19:17:39
Line 69 
Line 69 
         if ((path = ttyname(fd)) == NULL)          if ((path = ttyname(fd)) == NULL)
                 fatalx("ttyname failed");                  fatalx("ttyname failed");
         tty->path = xstrdup(path);          tty->path = xstrdup(path);
           tty->cstyle = 0;
         tty->ccolour = xstrdup("");          tty->ccolour = xstrdup("");
   
         tty->flags = 0;          tty->flags = 0;
Line 244 
Line 245 
         tty_raw(tty, tty_term_string(tty->term, TTYC_SGR0));          tty_raw(tty, tty_term_string(tty->term, TTYC_SGR0));
         tty_raw(tty, tty_term_string(tty->term, TTYC_RMKX));          tty_raw(tty, tty_term_string(tty->term, TTYC_RMKX));
         tty_raw(tty, tty_term_string(tty->term, TTYC_CLEAR));          tty_raw(tty, tty_term_string(tty->term, TTYC_CLEAR));
           if (tty_term_has(tty->term, TTYC_CS1) && tty->cstyle != 0) {
                   if (tty_term_has(tty->term, TTYC_CSR1))
                           tty_raw(tty, tty_term_string(tty->term, TTYC_CSR1));
                   else if (tty_term_has(tty->term, TTYC_CS1))
                           tty_raw(tty, tty_term_string1(tty->term, TTYC_CS1, 0));
           }
         tty_raw(tty, tty_term_string(tty->term, TTYC_CR));          tty_raw(tty, tty_term_string(tty->term, TTYC_CR));
   
         tty_raw(tty, tty_term_string(tty->term, TTYC_CNORM));          tty_raw(tty, tty_term_string(tty->term, TTYC_CNORM));
Line 428 
Line 435 
                         tty_putcode(tty, TTYC_CNORM);                          tty_putcode(tty, TTYC_CNORM);
                 else                  else
                         tty_putcode(tty, TTYC_CIVIS);                          tty_putcode(tty, TTYC_CIVIS);
           }
           if (tty->cstyle != s->cstyle) {
                   if (tty_term_has(tty->term, TTYC_CS1)) {
                           if (s->cstyle == 0 &&
                               tty_term_has(tty->term, TTYC_CSR1))
                                   tty_putcode(tty, TTYC_CSR1);
                           else
                                   tty_putcode1(tty, TTYC_CS1, s->cstyle);
                   }
                   tty->cstyle = s->cstyle;
         }          }
         if (changed & ALL_MOUSE_MODES) {          if (changed & ALL_MOUSE_MODES) {
                 if (mode & ALL_MOUSE_MODES) {                  if (mode & ALL_MOUSE_MODES) {

Legend:
Removed from v.1.107  
changed lines
  Added in v.1.108