Implement terminal bell

This commit is contained in:
Keith Winstein
2012-01-31 17:53:20 -05:00
parent 24653462ce
commit cdf4c6b4b3
4 changed files with 16 additions and 5 deletions
+2 -1
View File
@@ -28,7 +28,7 @@ DrawState::DrawState( int s_width, int s_height )
}
Framebuffer::Framebuffer( int s_width, int s_height )
: rows( s_height, Row( s_width, 0 ) ), window_title(), ds( s_width, s_height )
: rows( s_height, Row( s_width, 0 ) ), window_title(), bell_count( 0 ), ds( s_width, s_height )
{
assert( s_height > 0 );
assert( s_width > 0 );
@@ -286,6 +286,7 @@ void Framebuffer::reset( void )
ds = DrawState( width, height );
rows = std::deque<Row>( height, newrow() );
window_title.clear();
/* do not reset bell_count */
}
void Framebuffer::soft_reset( void )