Optimize output if two frames differ in a scroll of top region

This commit is contained in:
Keith Winstein
2011-02-21 01:57:45 -05:00
parent 2d5304bba1
commit ca7a080a58
2 changed files with 69 additions and 3 deletions
+7 -2
View File
@@ -20,7 +20,7 @@ namespace Terminal {
void set_rendition( int num );
std::string sgr( void );
bool operator==( const Renditions &x )
bool operator==( const Renditions &x ) const
{
return (bold == x.bold) && (underlined == x.underlined)
&& (blink == x.blink) && (inverse == x.inverse)
@@ -45,7 +45,7 @@ namespace Terminal {
void reset( int background_color );
inline bool operator==( const Cell &x )
bool operator==( const Cell &x ) const
{
return ( (contents == x.contents)
&& (fallback == x.fallback)
@@ -67,6 +67,11 @@ namespace Terminal {
void delete_cell( int col, int background_color );
void reset( int background_color );
bool operator==( const Row &x ) const
{
return ( (cells == x.cells) && (wrap == x.wrap) );
}
};
class SavedCursor {