Implement first DEC set/reset modes

This commit is contained in:
Keith Winstein
2011-01-31 06:45:12 -05:00
parent 92d80accf9
commit 1a2fe97b88
5 changed files with 52 additions and 2 deletions
+6 -2
View File
@@ -57,8 +57,12 @@ DrawState::DrawState( int s_width, int s_height )
: width( s_width ), height( s_height ),
cursor_col( 0 ), cursor_row( 0 ),
combining_char_col( 0 ), combining_char_row( 0 ), tabs( s_width ),
next_print_will_wrap( false ), auto_wrap_mode( true )
{}
next_print_will_wrap( false ), origin_mode( false ), auto_wrap_mode( true )
{
for ( int i = 0; i < width; i++ ) {
tabs[ i ] = ( (i % 8) == 0 );
}
}
Framebuffer::Framebuffer( int s_width, int s_height )
: rows( s_height, Row( s_width ) ), ds( s_width, s_height )