Import of server, all hooked together

This commit is contained in:
Keith Winstein
2011-08-13 17:10:19 -04:00
parent 71e22ee041
commit 577bfc0dae
20 changed files with 355 additions and 70 deletions
+11
View File
@@ -151,6 +151,12 @@ namespace Terminal {
void resize( int s_width, int s_height );
DrawState( int s_width, int s_height );
bool operator==( const DrawState &x ) const
{
/* XXX other fields not necessary to compare -- for now */
return ( width == x.width ) && ( height == x.height ) && ( renditions == x.renditions );
}
};
class Framebuffer {
@@ -227,6 +233,11 @@ namespace Terminal {
void reset_cell( Cell *c ) { c->reset( ds.get_background_rendition() ); }
void reset_row( Row *r ) { r->reset( ds.get_background_rendition() ); }
bool operator==( const Framebuffer &x ) const
{
return ( rows == x.rows ) && ( window_title == x.window_title ) && ( ds == x.ds );
}
};
}