/* * FinishWindows - done with windows; close down */ void FinishWindows( void ) { cursor_type ct; window_id i; // Close Down All Straggling Windows for( i = 0; i < MAX_WINDS; i++ ) { if( Windows[i] != NULL ) { // CloseAWindow( i ); } } // Close down the windowing system. if( EditFlags.ZapColors ) { int i, total; if( !EditFlags.Quiet && Scrn != NULL ) { total = EditVars.WindMaxWidth * EditVars.WindMaxHeight; for( i = 0; i < total; i++ ) { Scrn[i].cinfo_attr = EditVars.ExitAttr; } #ifdef __VIO__ MyVioShowBuf( 0, EditVars.WindMaxWidth * EditVars.WindMaxHeight ); #endif } } FiniColors(); ct.height = 7; ct.width = 100; NewCursor( NO_WINDOW, ct ); MemFree( ScreenImage ); } /* FinishWindows */
static void preSpawn( void ) { info *cinfo; clockActive = EditFlags.ClockActive; EditFlags.ClockActive = false; #ifndef __WIN__ FiniColors(); if( !EditFlags.LineDisplay ) { ClearScreen(); } #endif /* * after a system command, all files could potentially have their * read/write attributes changed */ for( cinfo = InfoHead; cinfo != NULL; cinfo = cinfo->next ) { cinfo->CurrentFile->check_readonly = true; } setPrompt(); }
void FiniInstance( void ) { FiniColors(); FiniFonts(); // OLE2Fini(); }