version 1.319, 2020/04/16 14:25:35 |
version 1.320, 2020/04/17 22:16:28 |
|
|
struct session *s = c->session; |
struct session *s = c->session; |
struct tty *tty = &c->tty; |
struct tty *tty = &c->tty; |
struct window_pane *wp; |
struct window_pane *wp; |
int needed, flags; |
int needed, flags, mode = tty->mode; |
struct timeval tv = { .tv_usec = 1000 }; |
struct timeval tv = { .tv_usec = 1000 }; |
static struct event ev; |
static struct event ev; |
size_t left; |
size_t left; |
|
|
|
|
flags = tty->flags & (TTY_BLOCK|TTY_FREEZE|TTY_NOCURSOR); |
flags = tty->flags & (TTY_BLOCK|TTY_FREEZE|TTY_NOCURSOR); |
tty->flags = (tty->flags & ~(TTY_BLOCK|TTY_FREEZE)) | TTY_NOCURSOR; |
tty->flags = (tty->flags & ~(TTY_BLOCK|TTY_FREEZE)) | TTY_NOCURSOR; |
|
tty_update_mode(tty, mode, NULL); |
|
|
if (~c->flags & CLIENT_REDRAWWINDOW) { |
if (~c->flags & CLIENT_REDRAWWINDOW) { |
/* |
/* |
|
|
screen_redraw_screen(c); |
screen_redraw_screen(c); |
} |
} |
|
|
tty->flags = (tty->flags & ~(TTY_FREEZE|TTY_NOCURSOR)) | flags; |
tty->flags = (tty->flags & ~TTY_NOCURSOR) | (flags & TTY_NOCURSOR); |
tty_update_mode(tty, tty->mode, NULL); |
tty_update_mode(tty, mode, NULL); |
|
tty->flags = (tty->flags & ~(TTY_BLOCK|TTY_FREEZE|TTY_NOCURSOR)) | flags; |
|
|
c->flags &= ~(CLIENT_ALLREDRAWFLAGS|CLIENT_STATUSFORCE); |
c->flags &= ~(CLIENT_ALLREDRAWFLAGS|CLIENT_STATUSFORCE); |
|
|