From f72add79bdc4b72a54fb72e512d3a15263e7484c Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Fri, 25 Apr 2014 00:04:06 -0400 Subject: start refactoring to draw parsed text to an intermediary data structure --- src/pty-unix.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/pty-unix.c') diff --git a/src/pty-unix.c b/src/pty-unix.c index 0a4dc8b..c969394 100644 --- a/src/pty-unix.c +++ b/src/pty-unix.c @@ -99,8 +99,8 @@ void runes_pty_backend_set_window_size(RunesTerm *t) { struct winsize size; - size.ws_row = t->rows; - size.ws_col = t->cols; + size.ws_row = t->scr.max.row; + size.ws_col = t->scr.max.col; size.ws_xpixel = t->xpixel; size.ws_ypixel = t->ypixel; ioctl(t->pty.master, TIOCSWINSZ, &size); @@ -144,7 +144,7 @@ static void runes_pty_backend_got_data(uv_work_t *req, int status) UNUSED(status); if (t->readlen > 0) { - runes_parser_process_string( + runes_screen_process_string( t, t->readbuf, t->readlen + t->remaininglen); uv_queue_work( t->loop, req, runes_pty_backend_read, runes_pty_backend_got_data); -- cgit v1.2.3-54-g00ecf