Dispatch for controls as well

This commit is contained in:
Keith Winstein
2011-01-31 05:13:21 -05:00
parent cda7a87f66
commit a49378b23b
4 changed files with 51 additions and 25 deletions
+1 -16
View File
@@ -43,22 +43,7 @@ void Emulator::execute( Parser::Execute *act )
{
assert( act->char_present );
switch ( act->ch ) {
case 0x0a: /* LF */
fb.move_rows_autoscroll( 1 );
act->handled = true;
break;
case 0x0d: /* CR */
fb.ds.move_col( 0 );
act->handled = true;
break;
case 0x08: /* BS */
fb.ds.move_col( -1, true );
act->handled = true;
break;
}
dispatch.dispatch( CONTROL, act, &fb );
}
void Emulator::print( Parser::Print *act )