void TermView::FrameResized(float width, float height) { VTermRect newSize = _PixelsToGlyphs(BRect(0, 0, width - 2 * kBorderSpacing, height - 2 * kBorderSpacing)); vterm_set_size(fTerm, newSize.end_row, newSize.end_col); }
int term_resize(struct aug_term *term, int rows, int cols) { fprintf(stderr, "term: resize %d, %d\n", rows, cols); /* this should cause full damage and the window will be repainted * by a .damage callback */ vterm_set_size(term->vt, rows, cols); if(term->master != 0) /* only resize the master if we have a valid pty */ if(term_resize_master(term) != 0) return -1; return 0; }