Handles DEC alignment and intermediate chars, sends "unhandled" acts to debug fd

This commit is contained in:
Keith Winstein
2011-01-22 16:35:02 -05:00
parent bd2e1f99c1
commit b8d67c54f3
5 changed files with 71 additions and 12 deletions
+11
View File
@@ -70,6 +70,7 @@ void Emulator::CSI_cursormove( void )
cursor_col -= num;
break;
case 'H':
case 'f':
int x = getparam( 0, 1 );
int y = getparam( 1, 1 );
cursor_row = x - 1;
@@ -88,3 +89,13 @@ void Emulator::CSI_DA( void )
{
terminal_to_host.append( "\033[?1;0c" );
}
void Emulator::Esc_DECALN( void )
{
for ( int y = 0; y < height; y++ ) {
for ( int x = 0; x < width; x++ ) {
rows[ y ].cells[ x ].reset();
rows[ y ].cells[ x ].contents.push_back( L'E' );
}
}
}