static void RequestResize(termw, rows, cols, text) XtermWidget termw; int rows; int cols; int text;
static void RequestResize( XtermWidget termw, int rows, int cols, int text)
static void RequestResize(termw, rows, cols, text)	XtermWidget termw;	int rows;	int cols;	int text;{	register TScreen	*screen	= &termw->screen;	Dimension replyWidth, replyHeight;	Dimension askedWidth, askedHeight;	XtGeometryResult status;	XWindowAttributes attrs;	askedWidth  = cols;	askedHeight = rows;	if (askedHeight == 0	 || askedWidth  == 0) {		XGetWindowAttributes(XtDisplay(termw),			RootWindowOfScreen(XtScreen(termw)), &attrs);	}	if (text) {		if (rows != 0) {			if (rows < 0)				askedHeight = screen->max_row + 1;			askedHeight *= FontHeight(screen);			askedHeight += (2 * screen->border);		}		if (cols != 0) {			if (cols < 0)				askedWidth = screen->max_col + 1;			askedWidth  *= FontWidth(screen);			askedWidth  += (2 * screen->border) + Scrollbar(screen);		}	} else {		if (rows < 0)			askedHeight = FullHeight(screen);		if (cols < 0)			askedWidth = FullWidth(screen);	}	if (rows == 0)		askedHeight = attrs.height;	if (cols == 0)		askedWidth  = attrs.width;	status = XtMakeResizeRequest (	    (Widget) termw,	     askedWidth,  askedHeight,	    &replyWidth, &replyHeight);	if (status == XtGeometryYes ||	    status == XtGeometryDone) {	    ScreenResize (&termw->screen,			  replyWidth,			  replyHeight,			  &termw->flags);	    XSync(screen->display, FALSE);	/* synchronize */	    if(XtAppPending(app_con))		xevents();	}}