XClearWindow(screen->display, TextWindow(screen));
XClearWindow(screen->display, VWindow(screen));
ChangeColors(XtermWidget tw, ScrnColors *pNew){	register TScreen *screen = &tw->screen;	Bool	newCursor=	TRUE;#if OPT_TEK4014	Window tek = TWindow(screen);#endif	if (COLOR_DEFINED(pNew,TEXT_BG)) {	    tw->core.background_pixel=	COLOR_VALUE(pNew,TEXT_BG);	}	if (COLOR_DEFINED(pNew,TEXT_CURSOR)) {	    screen->cursorcolor=	COLOR_VALUE(pNew,TEXT_CURSOR);	}	else if ((screen->cursorcolor == screen->foreground)&&		 (COLOR_DEFINED(pNew,TEXT_FG))) {	    screen->cursorcolor=	COLOR_VALUE(pNew,TEXT_FG);	}	else newCursor=	FALSE;	if (COLOR_DEFINED(pNew,TEXT_FG)) {	    Pixel	fg=	COLOR_VALUE(pNew,TEXT_FG);	    screen->foreground=	fg;	    XSetForeground(screen->display,NormalGC(screen),fg);	    XSetBackground(screen->display,ReverseGC(screen),fg);	    XSetForeground(screen->display,NormalBoldGC(screen),fg);	    XSetBackground(screen->display,ReverseBoldGC(screen),fg);	}	if (COLOR_DEFINED(pNew,TEXT_BG)) {	    Pixel	bg=	COLOR_VALUE(pNew,TEXT_BG);	    tw->core.background_pixel=	bg;	    XSetBackground(screen->display,NormalGC(screen),bg);	    XSetForeground(screen->display,ReverseGC(screen),bg);	    XSetBackground(screen->display,NormalBoldGC(screen),bg);	    XSetForeground(screen->display,ReverseBoldGC(screen),bg);	    XSetWindowBackground(screen->display, TextWindow(screen),						  tw->core.background_pixel);	}	if (COLOR_DEFINED(pNew,MOUSE_FG)||(COLOR_DEFINED(pNew,MOUSE_BG))) {	    if (COLOR_DEFINED(pNew,MOUSE_FG))		screen->mousecolor=	COLOR_VALUE(pNew,MOUSE_FG);	    if (COLOR_DEFINED(pNew,MOUSE_BG))		screen->mousecolorback=	COLOR_VALUE(pNew,MOUSE_BG);	    recolor_cursor (screen->pointer_cursor,		screen->mousecolor, screen->mousecolorback);	    recolor_cursor (screen->arrow,		screen->mousecolor, screen->mousecolorback);	    XDefineCursor(screen->display, TextWindow(screen),					   screen->pointer_cursor);#if OPT_HIGHLIGHT_COLOR	if (COLOR_DEFINED(pNew,HIGHLIGHT_BG)) {	    screen->highlightcolor=	COLOR_VALUE(pNew,HIGHLIGHT_BG);	}#endif#if OPT_TEK4014	    if(tek)		XDefineCursor(screen->display, tek, screen->arrow);#endif	}#if OPT_TEK4014	if ((tek)&&(COLOR_DEFINED(pNew,TEK_FG)||COLOR_DEFINED(pNew,TEK_BG))) {	    ChangeTekColors(screen,pNew);	}#endif	set_cursor_gcs(screen);	XClearWindow(screen->display, TextWindow(screen));	ScrnRefresh (screen, 0, 0, screen->max_row + 1,	 screen->max_col + 1, False);#if OPT_TEK4014	if(screen->Tshow) {	    XClearWindow(screen->display, tek);	    TekExpose((Widget)NULL, (XEvent *)NULL, (Region)NULL);	}#endif}