Model renditions explicitly -- 25% speedup

This commit is contained in:
Keith Winstein
2011-02-05 18:09:19 -05:00
parent 2f964f80f4
commit e0065bfe5c
7 changed files with 92 additions and 90 deletions
+1 -9
View File
@@ -152,15 +152,7 @@ void Emulator::debug_printout( int fd )
Cell *cell = fb.get_cell( y, x );
/* print renditions */
screen.append( "\033[0" );
char rendition[ 32 ];
for ( std::list<int>::iterator i = cell->renditions.begin();
i != cell->renditions.end();
i++ ) {
snprintf( rendition, 32, ";%d", *i );
screen.append( rendition );
}
screen.append( "m" );
screen.append( cell->renditions.sgr() );
/* clear cell */
screen.append( "\033[X" );