src/arch/mswin/mycurses.c
/* repaint physical screen from virtual image (curscr) */
repaint physical screen from virtual image (curscr)
repaint physical screen from virtual image ( curscr )
int doupdate(void)
{
	int linecount=0;
	int i=0;
	if((linecount  = (curscr->_maxcy - curscr->_mincy)) >= 0)
	{
		COORD cLocation = {0,0};
		cLocation.X = 0;
		cLocation.Y = curscr->_mincy;
		linecount++;
		for (i=0; i<linecount; i++, cLocation.Y++)
		{
			DWORD dwLen;
			WriteConsoleOutputCharacter(hStdout,
				(LPTSTR)(getlinew(curscr, curscr->_mincy+i)),
				(DWORD)curscr->_maxx,
				cLocation, &dwLen);
		}
		curscr->_mincy = curscr->_maxy;
		curscr->_maxcy = -1;
	}
	return(0);
}
int doupdate ( void ) { int linecount = 0 ; int i = 0 ; if ( ( linecount = ( curscr -> _maxcy - curscr -> _mincy ) ) >= 0 ) { COORD cLocation = { 0 , 0 } ; cLocation . X = 0 ; cLocation . Y = curscr -> _mincy ; linecount ++ ; for ( i = 0 ; i < linecount ; i ++ , cLocation . Y ++ ) { DWORD dwLen ; WriteConsoleOutputCharacter ( hStdout , ( LPTSTR ) ( getlinew ( curscr , curscr -> _mincy + i ) ) , ( DWORD ) curscr -> _maxx , cLocation , & dwLen ) ; } curscr -> _mincy = curscr -> _maxy ; curscr -> _maxcy = -1 ; } return ( 0 ) ; }
repaint physical screen from virtual image (curscr)
repaint physical screen from virtual image ( curscr )
/* update the screen */