- size.ws_row = (unsigned short)term->rows;
- size.ws_col = (unsigned short)term->cols;
- size.ws_xpixel = (unsigned short) term->cols * font_dimension(0);
- size.ws_ypixel = (unsigned short) term->rows * font_dimension(1);
+ pty_term_width = width;
+ pty_term_height = height;
+
+ size.ws_row = (unsigned short)pty_term_height;
+ size.ws_col = (unsigned short)pty_term_width;
+ size.ws_xpixel = (unsigned short) pty_term_width * font_dimension(0);
+ size.ws_ypixel = (unsigned short) pty_term_height * font_dimension(1);