[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.360 and 1.361

version 1.360, 2020/04/20 13:38:48 version 1.361, 2020/04/20 14:59:31
Line 1427 
Line 1427 
 void  void
 tty_sync_start(struct tty *tty)  tty_sync_start(struct tty *tty)
 {  {
         if ((~tty->flags & TTY_SYNCING) && tty_term_has(tty->term, TTYC_SYNC)) {          if (tty->flags & TTY_BLOCK)
                   return;
           if (tty->flags & TTY_SYNCING)
                   return;
           tty->flags |= TTY_SYNCING;
   
           if (tty_term_has(tty->term, TTYC_SYNC)) {
                   log_debug("%s sync start", tty->client->name);
                 tty_putcode1(tty, TTYC_SYNC, 1);                  tty_putcode1(tty, TTYC_SYNC, 1);
                 tty->flags |= TTY_SYNCING;  
         }          }
 }  }
   
 void  void
 tty_sync_end(struct tty *tty)  tty_sync_end(struct tty *tty)
 {  {
         if ((tty->flags & TTY_SYNCING) && tty_term_has(tty->term, TTYC_SYNC)) {          if (tty->flags & TTY_BLOCK)
                   return;
           if (~tty->flags & TTY_SYNCING)
                   return;
           tty->flags &= ~TTY_SYNCING;
   
           if (tty_term_has(tty->term, TTYC_SYNC)) {
                   log_debug("%s sync end", tty->client->name);
                 tty_putcode1(tty, TTYC_SYNC, 2);                  tty_putcode1(tty, TTYC_SYNC, 2);
                 tty->flags &= ~TTY_SYNCING;  
         }          }
 }  }
   
Line 1950 
Line 1962 
 tty_cmd_syncstart(struct tty *tty, __unused const struct tty_ctx *ctx)  tty_cmd_syncstart(struct tty *tty, __unused const struct tty_ctx *ctx)
 {  {
         tty_sync_start(tty);          tty_sync_start(tty);
 }  
   
 void  
 tty_cmd_syncend(struct tty *tty, __unused const struct tty_ctx *ctx)  
 {  
         tty_sync_end(tty);  
 }  }
   
 static void  static void

Legend:
Removed from v.1.360  
changed lines
  Added in v.1.361