[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.413 and 1.414

version 1.413, 2021/12/06 10:08:42 version 1.414, 2021/12/10 12:42:37
Line 206 
Line 206 
         size_t           size = EVBUFFER_LENGTH(tty->out);          size_t           size = EVBUFFER_LENGTH(tty->out);
         struct timeval   tv = { .tv_usec = TTY_BLOCK_INTERVAL };          struct timeval   tv = { .tv_usec = TTY_BLOCK_INTERVAL };
   
           if (size == 0)
                   tty->flags &= ~TTY_NOBLOCK;
           else if (tty->flags & TTY_NOBLOCK)
                   return (0);
   
         if (size < TTY_BLOCK_START(tty))          if (size < TTY_BLOCK_START(tty))
                 return (0);                  return (0);
   
Line 2088 
Line 2093 
         encoded = xmalloc(size);          encoded = xmalloc(size);
   
         b64_ntop(buf, len, encoded, size);          b64_ntop(buf, len, encoded, size);
           tty->flags |= TTY_NOBLOCK;
         tty_putcode_ptr2(tty, TTYC_MS, "", encoded);          tty_putcode_ptr2(tty, TTYC_MS, "", encoded);
         tty->client->redraw = EVBUFFER_LENGTH(tty->out);  
   
         free(encoded);          free(encoded);
 }  }
Line 2097 
Line 2102 
 void  void
 tty_cmd_rawstring(struct tty *tty, const struct tty_ctx *ctx)  tty_cmd_rawstring(struct tty *tty, const struct tty_ctx *ctx)
 {  {
           tty->flags |= TTY_NOBLOCK;
         tty_add(tty, ctx->ptr, ctx->num);          tty_add(tty, ctx->ptr, ctx->num);
         tty_invalidate(tty);          tty_invalidate(tty);
 }  }

Legend:
Removed from v.1.413  
changed lines
  Added in v.1.414