Switch tty fds over to a bufferevent.

This commit is contained in:
Nicholas Marriott
2009-11-04 21:47:42 +00:00
parent abb728684b
commit 7342615c7d
5 changed files with 38 additions and 45 deletions

View File

@@ -87,7 +87,8 @@ server_window_backoff(struct window_pane *wp)
continue;
if (c->session->curw->window != wp->window)
continue;
if (BUFFER_USED(c->tty.out) > BACKOFF_THRESHOLD)
if (EVBUFFER_LENGTH(c->tty.event->output) > BACKOFF_THRESHOLD)
return (1);
}
return (0);