Soft reset

This commit is contained in:
Keith Winstein
2011-02-01 02:48:08 -05:00
parent 73af007db4
commit 6265f192ad
3 changed files with 19 additions and 0 deletions
+9
View File
@@ -313,3 +313,12 @@ void Framebuffer::reset( void )
rows = std::deque<Row>( height, Row( width ) );
ds = DrawState( width, height );
}
void Framebuffer::soft_reset( void )
{
ds.insert_mode = false;
ds.origin_mode = false;
ds.set_scrolling_region( 0, ds.get_height() - 1 );
ds.clear_renditions();
ds.clear_saved_cursor();
}